Skip to content

Commit

Permalink
run-vmtest: convert tests from comma-separated list to space-separated.
Browse files Browse the repository at this point in the history
vmtest_selftests.sh expect them to be space-separated.

Signed-off-by: Manu Bretelle <[email protected]>
  • Loading branch information
chantra committed Jan 25, 2024
1 parent 95df674 commit 1bb84d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions run-vmtest/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@ foldable end bpftool_checks

foldable start vmtest "Starting virtual machine..."

# Tests may be comma-separated. vmtest_selftest expect them to come from CLI space-separated.
T=$(echo ${KERNEL_TEST} | tr -s ',' ' ')
# HACK: We need to unmount /tmp to access /tmp from the container....

vmtest -k "${VMLINUZ}" --kargs "panic=-1 sysctl.vm.panic_on_oom=1" "umount /tmp && \
/bin/mount bpffs /sys/fs/bpf -t bpf && \
ip link set lo up && \
cd '${GITHUB_WORKSPACE}' && \
./ci/vmtest/vmtest_selftests.sh ${KERNEL_TEST}"
./ci/vmtest/vmtest_selftests.sh ${T}"

foldable end vmtest

Expand Down

0 comments on commit 1bb84d4

Please sign in to comment.