Skip to content

Commit

Permalink
Use sys.exit instead of exit from site packages
Browse files Browse the repository at this point in the history
sys.exit allows us to return non-zero exit status.
  • Loading branch information
Krishnan Parthasarathi committed Dec 29, 2017
1 parent 82d7f81 commit d1f568d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/functional/tests.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# limitations under the License.

import os
from sys import exit
import uuid
import shutil
import inspect
Expand Down Expand Up @@ -828,7 +829,7 @@ def main():
os.remove(largefile)
except Exception as err:
print(log_output.json_report(err))
exit()
exit(1)

if __name__ == "__main__":
# Execute only if run as a script
Expand Down

0 comments on commit d1f568d

Please sign in to comment.