Commit c7469376 by devttys0

Fixed setup.py exit code on failed tests

parent ef4e764a
...@@ -303,7 +303,7 @@ class TestCommand(Command): ...@@ -303,7 +303,7 @@ class TestCommand(Command):
os.chdir(testing_directory) os.chdir(testing_directory)
# Run the tests # Run the tests
nose.core.run(argv=['--exe','--with-coverage']) retval = nose.core.run(argv=['--exe','--with-coverage'])
sys.stdout.write("\n") sys.stdout.write("\n")
...@@ -316,6 +316,11 @@ class TestCommand(Command): ...@@ -316,6 +316,11 @@ class TestCommand(Command):
for extracted_directory in glob.glob("%s/*.extracted" % input_vectors_directory): for extracted_directory in glob.glob("%s/*.extracted" % input_vectors_directory):
remove_tree(extracted_directory) remove_tree(extracted_directory)
if retval == True:
sys.exit(0)
else:
sys.exit(1)
# The data files to install along with the module # The data files to install along with the module
install_data_files = [] install_data_files = []
for data_dir in ["magic", "config", "plugins", "modules", "core"]: for data_dir in ["magic", "config", "plugins", "modules", "core"]:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment