Skip to content

Commit

Permalink
Fix isotovideo CI jobs
Browse files Browse the repository at this point in the history
isotovideo-action.yml uses a isotovideo version with already jq installed.
fixed grep which excluded the expected output in success and changed logical
and to logical or, which will reached when grep fails.

Signed-off-by: ybonatakis <[email protected]>
  • Loading branch information
b10n1k committed Feb 8, 2024
1 parent 4d56c6d commit f269a41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/isotovideo-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ jobs:
image: "registry.opensuse.org/devel/openqa/containers/isotovideo:qemu-x86-jq"
steps:
- uses: actions/checkout@v2
- name: install jq
run: zypper -n in jq

- name: Run isotovideo against test code
run: isotovideo qemu_no_kvm=1 casedir=.
run: isotovideo qemu_no_kvm=1 casedir=$(pwd)

- name: fail if any test module failed
run: jq .result testresults/result-*.json | grep -v ok && echo "Test modules failed" && exit 1
run: jq .result testresults/result-*.json | grep ok || (echo "Test modules failed" && exit 1)
2 changes: 1 addition & 1 deletion .github/workflows/isotovideo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Run isotovideo against test code in happy-path scenario
run: podman run --rm -it -v .:/tests:Z registry.opensuse.org/devel/openqa/containers/isotovideo:qemu-x86 qemu_no_kvm=1 casedir=/tests
run: docker run --rm -it -v .:/tests:Z registry.opensuse.org/devel/openqa/containers/isotovideo:qemu-x86 qemu_no_kvm=1 casedir=/tests

0 comments on commit f269a41

Please sign in to comment.