Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
datascience
balsamDEPRECATED
Commits
f2c3d2f5
Commit
f2c3d2f5
authored
Jan 09, 2018
by
Michael Salim
Browse files
run_tests directory creation moved back into main
parent
bb7cbf2a
Changes
1
Show whitespace changes
Inline
Side-by-side
run_tests.py
View file @
f2c3d2f5
...
...
@@ -14,7 +14,11 @@ def set_permissions(top):
for
file
in
(
os
.
path
.
join
(
root
,
f
)
for
f
in
files
):
os
.
chmod
(
file
,
0o644
)
def
main
(
test_directory
):
def
main
():
test_dir
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
balsam
.
__file__
))
tempdir
=
tempfile
.
TemporaryDirectory
(
dir
=
test_dir
,
prefix
=
"testdata_"
)
test_directory
=
tempdir
.
name
os
.
environ
[
'BALSAM_TEST_DIRECTORY'
]
=
test_directory
os
.
environ
[
'BALSAM_TEST'
]
=
'1'
...
...
@@ -32,6 +36,4 @@ def main(test_directory):
unittest
.
TextTestRunner
(
verbosity
=
2
).
run
(
suite
)
if
__name__
==
"__main__"
:
test_dir
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
balsam
.
__file__
))
tempdir
=
tempfile
.
TemporaryDirectory
(
dir
=
test_dir
,
prefix
=
"testdata_"
)
main
(
tempdir
.
name
)
main
()
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