Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
move test, make it actually run
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaudill committed Oct 23, 2023
1 parent 10d7686 commit c76a22c
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -393,21 +393,19 @@ jobs:
- name: run test suite (Git WD, standard)
run: |
bin/ch-test all
# We only really need to run the root emulation tests once in CI. We
# choose to run it on squash-mount with ch-image and a disabled cache
# because this CI test is the fastest valid option, and should have a
# minimal impact the runtime of CI as a whole if rootemu is included.
if [[ (${{ matrix.pack_fmt }} == squash-mount) &&
(${{ matrix.builder }} == ch-image) &&
(${{ matrix.cache }} == disabled) ]]; then
bin/ch-test rootemu
# Validate that “rootemu” test phase ran.
[[ $(cat /tmp/ch-test.tmp.$USER/rootemu) = yes ]]
else
# Validate that “rootemu” test phase didn’t run (skipped by default
# on standard scope).
[[ $(cat /tmp/ch-test.tmp.$USER/rootemu) = no ]]
fi
# Validate that “rootemu” test phase didn’t run (skipped by default
# on standard scope).
[[ $(cat /tmp/ch-test.tmp.$USER/rootemu) = no ]]
- name: run root emulation phase
if: ${{ matrix.builder == 'ch-image'
&& matrix.pack_fmt == 'squash-mount'
&& matrix.cache == 'enabled' }}
run: |
# We only really need to run the root emulation tests once in CI.
bin/ch-test rootemu
# Validate that “rootemu” test phase ran.
[[ $(cat /tmp/ch-test.tmp.$USER/rootemu) = yes ]]
- name: run test suite (installed from Git WD, standard)
if: ${{ matrix.builder == 'ch-image'
Expand Down

0 comments on commit c76a22c

Please sign in to comment.