Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
Managetests
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Web
Managetests
Commits
1d9822b6
Commit
1d9822b6
authored
Mar 02, 2019
by
Mattia Rizzolo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
useful messages if required files are missing
Signed-off-by:
Mattia Rizzolo
<
mattia@debian.org
>
parent
26141818
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
managetests/utils.py
managetests/utils.py
+2
-0
No files found.
managetests/utils.py
View file @
1d9822b6
...
@@ -33,11 +33,13 @@ def is_root_valid(path):
...
@@ -33,11 +33,13 @@ def is_root_valid(path):
for
dir
in
required_dirs
:
for
dir
in
required_dirs
:
dir
=
path
/
dir
dir
=
path
/
dir
if
not
(
dir
.
exists
()
and
dir
.
is_dir
()):
if
not
(
dir
.
exists
()
and
dir
.
is_dir
()):
print
(
"The required directory %s does not exist"
%
dir
)
return
False
return
False
for
file
in
required_files
:
for
file
in
required_files
:
file
=
path
/
file
file
=
path
/
file
if
not
(
file
.
exists
()
and
file
.
is_file
()):
if
not
(
file
.
exists
()
and
file
.
is_file
()):
print
(
"The required file %s does not exist"
%
file
)
return
False
return
False
with
(
path
/
"version"
).
open
(
"r"
)
as
f
:
with
(
path
/
"version"
).
open
(
"r"
)
as
f
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment