Skip to content

Commit

Permalink
Merge pull request #9 from ZOSOpenTools/add-testing
Browse files Browse the repository at this point in the history
change 'exit' to 'return'
  • Loading branch information
Mike Fulton authored Sep 16, 2022
2 parents b8529cb + 63e5849 commit f53bd03
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
5 changes: 2 additions & 3 deletions buildenv
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@ zopen_check_results()
#
chk="$2_check.log"

set -x
failures=$(egrep '^ERROR|^FAIL' ${chk} | wc -l)
if [ ${failures} -gt 33 ]; then
exit 2
return 2
else
exit 1
return 1
fi
}
13 changes: 13 additions & 0 deletions patches/PR2/test-driver.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/lib/test-driver b/lib/test-driver
index 880a2e8..f2d8cc0 100755
--- a/lib/test-driver
+++ b/lib/test-driver
@@ -100,7 +100,7 @@ fi
do_exit='rm -f $log_file $trs_file; (exit $st); exit $st'
trap "st=129; $do_exit" 1
trap "st=130; $do_exit" 2
-trap "st=141; $do_exit" 13
+trap "st=141; $do_exit" SIGPIPE
trap "st=143; $do_exit" 15

# Test script is run here.

0 comments on commit f53bd03

Please sign in to comment.