File tree Expand file tree Collapse file tree 4 files changed +22
-6
lines changed Expand file tree Collapse file tree 4 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ inputs:
3030 vmtest-release :
3131 description : ' Release version of vmtest tool to use'
3232 required : false
33- default : ' v0.15 .0'
33+ default : ' v0.18 .0'
3434
3535runs :
3636 using : " composite"
Original file line number Diff line number Diff line change 22
33set -euo pipefail
44
5- VMTEST_RELEASE=${VMTEST_RELEASE:- v0.15 .0}
5+ VMTEST_RELEASE=${VMTEST_RELEASE:- v0.18 .0}
66VMTEST_URL=" https://github.com/danobi/vmtest/releases/download/${VMTEST_RELEASE} /vmtest-$( uname -m) "
77sudo curl -L $VMTEST_URL -o /usr/bin/vmtest
88sudo chmod 755 /usr/bin/vmtest
Original file line number Diff line number Diff line change @@ -86,10 +86,13 @@ foldable start vmtest "Starting virtual machine..."
8686
8787# Tests may be comma-separated. vmtest_selftest expect them to come from CLI space-separated.
8888TEST_RUNNERS=$( echo ${KERNEL_TEST} | tr -s ' ,' ' ' )
89- vmtest -k " ${VMLINUZ} " --kargs " panic=-1 sysctl.vm.panic_on_oom=1" \
90- " ${GITHUB_ACTION_PATH} /vmtest-init.sh && \
91- cd '${GITHUB_WORKSPACE} ' && \
92- ${VMTEST_SCRIPT} ${TEST_RUNNERS} "
89+
90+ export VMLINUZ TEST_RUNNERS VMTEST_SCRIPT
91+ VMTEST_TOML=$( mktemp /tmp/vmtest.XXXXXX.toml)
92+ envsubst < " ${GITHUB_ACTION_PATH} /vmtest.toml" > $VMTEST_TOML
93+ echo " cat $VMTEST_TOML "
94+ cat $VMTEST_TOML
95+ vmtest -c $VMTEST_TOML
9396
9497# fixup traffic montioring log paths if present
9598PCAP_DIR=/tmp/tmon_pcap
Original file line number Diff line number Diff line change 1+ [[target ]]
2+ name = " run-vmtest"
3+ kernel = " ${VMLINUZ}"
4+ kernel_args = " panic=-1 sysctl.vm.panic_on_oom=1"
5+ command = """ \
6+ ${GITHUB_ACTION_PATH}/vmtest-init.sh && \
7+ cd ${GITHUB_WORKSPACE} && \
8+ ${VMTEST_SCRIPT} ${TEST_RUNNERS} \
9+ """
10+
11+ [target .vm ]
12+ num_cpus = 4
13+
You can’t perform that action at this time.
0 commit comments