Skip to content

Commit

Permalink
[test/spec-cpp] Write comparison HTML even on failure
Browse files Browse the repository at this point in the history
Koichi ran into this
  • Loading branch information
Andy C committed Dec 12, 2024
1 parent fddc7cf commit ec1ae69
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/spec-cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,18 @@ osh-all() {

local spec_subdir=osh-cpp

# TODO: spec/nul-bytes passes when it should probably fail -- we get 1
# failure instead of 2.

local status
set +o errexit
# $suite $compare_mode
test/spec-runner.sh all-parallel \
osh compare-cpp $spec_subdir "$@"
status=$?
set -o errexit

# Write comparison even if we failed
write-compare-html $spec_subdir

return $status
}

ysh-all() {
Expand Down

0 comments on commit ec1ae69

Please sign in to comment.