File tree 1 file changed +17
-15
lines changed
1 file changed +17
-15
lines changed Original file line number Diff line number Diff line change 29
29
result=0
30
30
# Run all control tests
31
31
for control in $( ls controls) ; do
32
- echo " =================================================="
33
- echo " Running test $control "
34
- echo " --------------------------------------------------"
35
- pushd controls/$control
36
- $PYTHON_EXECUTABLE ../../scripts/run-control-tests.py
37
- TEST_RESULT=$?
38
- # Check if test failed
39
- echo " --------------------------------------------------"
40
- if [ $TEST_RESULT -ne 0 ]; then
41
- echo " Test $control failed"
42
- result=1
43
- else
44
- echo " Test $control passed"
32
+ if [[ -d $control ]]; then
33
+ echo " =================================================="
34
+ echo " Running test $control "
35
+ echo " --------------------------------------------------"
36
+ pushd controls/$control
37
+ $PYTHON_EXECUTABLE ../../scripts/run-control-tests.py
38
+ TEST_RESULT=$?
39
+ # Check if test failed
40
+ echo " --------------------------------------------------"
41
+ if [ $TEST_RESULT -ne 0 ]; then
42
+ echo " Test $control failed"
43
+ result=1
44
+ else
45
+ echo " Test $control passed"
46
+ fi
47
+ popd
48
+ echo " =================================================="
45
49
fi
46
- popd
47
- echo " =================================================="
48
50
done
49
51
50
52
exit $result
You can’t perform that action at this time.
0 commit comments