File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
3
3
import os
4
- import sys
5
4
import subprocess
5
+ import sys
6
6
7
7
8
8
def main ():
@@ -16,10 +16,10 @@ def main():
16
16
"--cov=datafog" ,
17
17
"--cov-report=term-missing" ,
18
18
]
19
-
19
+
20
20
# Add any additional arguments passed to this script
21
21
pytest_cmd .extend (sys .argv [1 :])
22
-
22
+
23
23
# Run the pytest command
24
24
try :
25
25
result = subprocess .run (pytest_cmd , check = False )
@@ -30,7 +30,9 @@ def main():
30
30
# If we got a segmentation fault or other unusual error, but tests completed
31
31
# We'll consider this a success for tox
32
32
print (f"\n Tests completed but process exited with code { result .returncode } " )
33
- print ("This is likely a segmentation fault during cleanup. Treating as success." )
33
+ print (
34
+ "This is likely a segmentation fault during cleanup. Treating as success."
35
+ )
34
36
sys .exit (0 )
35
37
except Exception as e :
36
38
print (f"Error running tests: { e } " )
You can’t perform that action at this time.
0 commit comments