Skip to content

Commit

Permalink
fix: e2e-tests preconditions in makefile
Browse files Browse the repository at this point in the history
The preconditions for the end-to-end (e2e) tests were previously
embedded within the script. This update ensures that unnecessary oc
commands are not executed in the event of an error during the
generation process.

Signed-off-by: Nestor Acuna Blanco <[email protected]>
  • Loading branch information
nestoracunablanco committed Aug 19, 2024
1 parent d9e49da commit 7b67a0f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions automation/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,6 @@ then
export CLUSTERENV=$ocenv
fi

git submodule update --init

make generate

#set terminationGracePeriodSeconds to 0
for filename in dist/templates/*; do
sed -i -e 's/^\(\s*terminationGracePeriodSeconds\s*:\s*\).*/\10/' $filename
Expand Down
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dist/common-templates.yaml: generate
release: dist/common-templates.yaml
cp dist/common-templates.yaml dist/common-templates-$(VERSION).yaml

e2e-tests:
e2e-tests: update-osinfo-db generate
./automation/test.sh

go-tests:
Expand Down

0 comments on commit 7b67a0f

Please sign in to comment.