Skip to content

Commit 8122dbc

Browse files
committed
dump make check log file
1 parent cfb1520 commit 8122dbc

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

darshan-test/automated/build-darshan.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55

66
# Exit immediately if a command exits with a non-zero status.
7-
set -x
7+
set -e
88

99
basedir=$PWD
1010
build_dir=$PWD/darshan_build
@@ -49,9 +49,20 @@ make check
4949
# built, as it used darshan-parser.
5050
if [ ! -v DARSHAN_RUNTIME_SKIP ]; then
5151
cd $build_dir/darshan-runtime
52+
53+
# disable errexit, so we can dump make check log file
54+
unset +e
55+
5256
# run check
5357
make check
5458

55-
#dump log files
59+
check_status=$?
60+
61+
# dump make check log file
5662
cat test/tst_runs.log
63+
64+
if test "x$check_status" != x0 ; then
65+
exit $check_status
66+
fi
5767
fi
68+

0 commit comments

Comments
 (0)