File tree 2 files changed +18
-2
lines changed
2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,12 @@ test-openshift: script_env += TEST_OPENSHIFT_MODE=true
110
110
test-openshift : tag
111
111
VERSIONS=" $( VERSIONS) " BASE_IMAGE_NAME=" $( BASE_IMAGE_NAME) " $(script_env ) $(test )
112
112
113
+ .PHONY : test-openshift-pytest
114
+ test-openshift-pytest : script_env += TEST_OPENSHIFT_PYTEST=true
115
+ test-openshift-pytest : tag
116
+ VERSIONS=" $( VERSIONS) " BASE_IMAGE_NAME=" $( BASE_IMAGE_NAME) " $(script_env ) $(test )
117
+
118
+
113
119
.PHONY : shellcheck
114
120
shellcheck :
115
121
$(shellcheck ) $(SHELLCHECK_FILES )
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ for dir in ${VERSIONS}; do
57
57
if [ -e " .exclude-openshift" ]; then
58
58
echo " -> .exclude-openshift file exists for version $dir , skipping OpenShift-4 tests."
59
59
else
60
- if [[ -x test/run-openshift-remote-cluster ] ]; then
60
+ if [ -x test/run-openshift-remote-cluster ]; then
61
61
VERSION=$dir test/run-openshift-remote-cluster
62
62
failed_version " $? " " $dir "
63
63
else
@@ -68,13 +68,23 @@ for dir in ${VERSIONS}; do
68
68
fi
69
69
70
70
if [ -n " ${TEST_UPSTREAM} " ]; then
71
- if [[ -x test/run-upstream ] ]; then
71
+ if [ -x test/run-upstream ]; then
72
72
VERSION=$dir test/run-upstream
73
73
failed_version " $? " " $dir "
74
74
else
75
75
echo " -> Upstream tests are not present, skipping"
76
76
fi
77
77
fi
78
+
79
+ if [ -n " ${TEST_OPENSHIFT_PYTEST} " ]; then
80
+ if [ -x test/run-openshift-pytest ]; then
81
+ VERSION=$dir test/run-openshift-pytest
82
+ failed_version " $? " " $dir "
83
+ else
84
+ echo " -> PyTest tests are not present, skipping"
85
+ fi
86
+ fi
87
+
78
88
popd > /dev/null || exit 1
79
89
done
80
90
You can’t perform that action at this time.
0 commit comments