Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
IPDSnelting
mjtest
Commits
5796bcd0
Commit
5796bcd0
authored
Jan 22, 2019
by
Johannes Bechberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reset current working directory in all mode
Fix
#6
parent
8d30f89e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
mjtest/cli.py
mjtest/cli.py
+2
-0
No files found.
mjtest/cli.py
View file @
5796bcd0
...
...
@@ -96,9 +96,11 @@ if True:#__name__ == '__main__':
args
[
"mode"
]
=
new_mode
if
args
[
"mode"
]
==
"all"
:
report_subdir
=
datetime
.
now
().
strftime
(
"%d-%m-%y_%H-%M-%S"
)
cwd
=
os
.
path
.
realpath
(
"."
)
for
mode
in
[
TestMode
.
lexer
,
TestMode
.
syntax
,
TestMode
.
ast
,
TestMode
.
semantic
,
TestMode
.
compile_firm_only
,
TestMode
.
compile_only
,
TestMode
.
compile_firm
,
TestMode
.
compile
]:
os
.
chdir
(
cwd
)
args
[
"all_exec_tests"
]
=
True
args
[
"report_subdir"
]
=
report_subdir
+
"_"
+
mode
cprint
(
"Run {} tests"
.
format
(
mode
),
attrs
=
[
"bold"
])
...
...
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