Skip to content

Commit f76ec95

Browse files
authored
Merge branch 'master' into master
2 parents 3ef9687 + 4ddd3d4 commit f76ec95

File tree

8 files changed

+7
-2
lines changed

8 files 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)