Skip to content

Commit

Permalink
BATS: Use selftest_sigill instead of selftest_sigkill.
Browse files Browse the repository at this point in the history
selftest_sigkill is not a valid test name on Windows. After the
refactoring opendcdiag.exe produces an empty output when an illegal test
name is specified. Before it was not touching the log file, but the test
was failing cause it was reading the output.yaml of the previous run
(note the loop over tests).

Signed-off-by: Arzhan Kinzhalin <arzhan.i.kinzhalin@intel.com>
  • Loading branch information
busykai committed May 3, 2024
1 parent 0f01267 commit 6e99b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bats/sanity-check/10-yaml-validate.bats
Expand Up @@ -14,7 +14,7 @@ load ../testenv
}

@test "Verify that the python yaml module can import failure output" {
for test in selftest_failinit selftest_fail selftest_freeze selftest_sigkill; do
for test in selftest_failinit selftest_fail selftest_freeze selftest_sigill; do
run $SANDSTONE --no-triage --retest-on-failure=1 --on-crash=kill --on-hang=kill --timeout=2s --selftest -o output.yaml -Y2 -e $test
if [[ "$status" = 0 ]]; then
printf "%s: status is 0\n" $test
Expand Down

0 comments on commit 6e99b43

Please sign in to comment.