Skip to content

Commit

Permalink
ci: ensure testsuite log is dumped on failure
Browse files Browse the repository at this point in the history
Move make check into the if conditional to ensure that the failure does
not force the script to immediately exit.

Signed-off-by: Nathan Hjelm <hjelmn@google.com>
  • Loading branch information
hjelmn committed Dec 6, 2023
1 parent f0d1ff3 commit 43c6fe0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .private/ci-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ make -j4 -k
if [ "${test}" = "yes" ]; then
# Load custom shim for WebUSB tests that simulates Web environment.
export NODE_OPTIONS="--require ${scriptdir}/../tests/webusb-test-shim/"
make check
if test "$?" != "0" ; then
if ! make check ; then
cat tests/test-suite.log
exit 1
fi
fi

Expand Down
2 changes: 1 addition & 1 deletion libusb/version_nano.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define LIBUSB_NANO 11837
#define LIBUSB_NANO 11838

0 comments on commit 43c6fe0

Please sign in to comment.