Skip to content

Commit ae03a0b

Browse files
authored
fix for non-olm kuttl test script (redhat-developer#587)
Signed-off-by: saumeya <[email protected]>
1 parent 3c2ad8a commit ae03a0b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

hack/scripts/run-non-olm-kuttl-test.sh

+7-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,13 @@ done
5454

5555
#replace the namespace for assert in test file
5656

57-
sed -i 's/openshift-operators/gitops-operator-system/g' $temp_dir/sequential/1-018_validate_disable_default_instance/02-assert.yaml \
58-
$temp_dir/sequential/1-035_validate_argocd_secret_repopulate/04-check_controller_pod_status.yaml
57+
if [ -d "$temp_dir/sequential/1-018_validate_disable_default_instance" ]; then
58+
sed -i 's/openshift-operators/gitops-operator-system/g' $temp_dir/sequential/1-018_validate_disable_default_instance/02-assert.yaml
59+
fi
60+
61+
if [ -d "$temp_dir/sequential/1-035_validate_argocd_secret_repopulate" ]; then
62+
sed -i 's/openshift-operators/gitops-operator-system/g' $temp_dir/sequential/1-035_validate_argocd_secret_repopulate/04-check_controller_pod_status.yaml
63+
fi
5964

6065
cleanup() {
6166
rm -rf "$temp_dir"

0 commit comments

Comments
 (0)