Skip to content

Commit

Permalink
HACK: use FORCE_QUIT_GAP to abort after test failure, to see if that …
Browse files Browse the repository at this point in the history
…helps with s390x/aarch64 Travis test hangs
  • Loading branch information
fingolfin committed Jan 29, 2020
1 parent 989af9f commit 33f1e5d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions etc/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ do
$GAP -b <<GAPInput
SaveWorkspace("testpackagesload.wsp");
PrintTo("packagenames", JoinStringsWithSeparator( SortedList(RecNames( GAPInfo.PackagesInfo )),"\n") );
QUIT_GAP(0);
FORCE_QUIT_GAP(0);
GAPInput
for pkg in $(cat packagenames)
do
Expand Down Expand Up @@ -141,15 +141,15 @@ GAPInput
SetUserPreference("ReproducibleBehaviour", true);
Read("$SRCDIR/tst/testmanuals.g");
SaveWorkspace("testmanuals.wsp");
QUIT_GAP(0);
FORCE_QUIT_GAP(0);
GAPInput

TESTMANUALSPASS=yes
for ch in $SRCDIR/tst/testmanuals/*.tst
do
$GAP -b -L testmanuals.wsp --cover $COVDIR/$(basename $ch).coverage <<GAPInput || TESTMANUALSPASS=no
TestManualChapter("$ch");
QUIT_GAP(0);
FORCE_QUIT_GAP(0);
GAPInput
done

Expand All @@ -162,7 +162,7 @@ GAPInput
# Also test a package banner
LoadPackage("polycyclic");
SaveWorkspace("test.wsp");
QUIT_GAP(0);
FORCE_QUIT_GAP(0);
GAPInput

;;
Expand Down
6 changes: 3 additions & 3 deletions lib/test.gi
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ InstallGlobalFunction( "TestDirectory", function(arg)
Print( "#I Errors detected while testing\n\n" );
fi;
if opts.exitGAP then
QUIT_GAP(1);
FORCE_QUIT_GAP(1);
fi;
return false;
fi;
Expand Down Expand Up @@ -931,9 +931,9 @@ InstallGlobalFunction( "TestDirectory", function(arg)

if opts.exitGAP then
if testTotalFailures = 0 then
QUIT_GAP(0);
FORCE_QUIT_GAP(0);
else
QUIT_GAP(1);
FORCE_QUIT_GAP(1);
fi;
fi;

Expand Down

0 comments on commit 33f1e5d

Please sign in to comment.