File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 4
4
import tempfile
5
5
import shutil
6
6
import contextlib
7
- import sys
7
+
8
8
9
9
from regression .executable_runner import ExecutableRunner
10
10
@@ -56,7 +56,10 @@ def run_security_analyser_pipeline(
56
56
relative_binary_path ,
57
57
relative_rules_path ,
58
58
base_path ,
59
- extra_args = []):
59
+ extra_args = None ):
60
+
61
+ if extra_args is None :
62
+ extra_args = []
60
63
61
64
regression_tests_path = os .getcwd ()
62
65
analyzer_home = get_security_analyzer_home ()
@@ -69,8 +72,10 @@ def run_security_analyser_pipeline(
69
72
absolute_rules_path = \
70
73
os .path .join (base_path , relative_rules_path )
71
74
72
- results_dir = tempfile .mkdtemp ()
73
- temporary_dir = tempfile .mkdtemp ()
75
+ results_dir = os .path .join (os .environ ["SECURITY_ANALYSER_END_TO_END_TESTS_KEEP_RESULTS" ], "RESULTS" )\
76
+ if "SECURITY_ANALYSER_END_TO_END_TESTS_KEEP_RESULTS" in os .environ else tempfile .mkdtemp ()
77
+ temporary_dir = os .path .join (os .environ ["SECURITY_ANALYSER_END_TO_END_TESTS_KEEP_RESULTS" ], "TEMP" )\
78
+ if "SECURITY_ANALYSER_END_TO_END_TESTS_KEEP_RESULTS" in os .environ else tempfile .mkdtemp ()
74
79
75
80
cmdline = ["python" , pipeline_driver_path ,
76
81
"-C" , absolute_rules_path ,
You can’t perform that action at this time.
0 commit comments