Skip to content

Commit 056aee7

Browse files
krisiskannappanr
authored andcommitted
Use sys.exit instead of exit from site packages (#604)
sys.exit allows us to return non-zero exit status.
1 parent 82d7f81 commit 056aee7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/functional/tests.py

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# limitations under the License.
1717

1818
import os
19+
from sys import exit
1920
import uuid
2021
import shutil
2122
import inspect
@@ -828,7 +829,7 @@ def main():
828829
os.remove(largefile)
829830
except Exception as err:
830831
print(log_output.json_report(err))
831-
exit()
832+
exit(1)
832833

833834
if __name__ == "__main__":
834835
# Execute only if run as a script

0 commit comments

Comments
 (0)