Skip to content

Commit

Permalink
Enforce a single status message in test output
Browse files Browse the repository at this point in the history
Otherwise due to IO_fork() we end up with running test twice.
Fixes #89
  • Loading branch information
Alexander Konovalov committed Feb 19, 2019
1 parent df33456 commit c192f4a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tst/testall.g
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,18 @@
#
LoadPackage( "JupyterKernel" );

TestDirectory( DirectoriesPackageLibrary("JupyterKernel", "tst"),
rec(exitGAP := true, testOptions := rec(compareFunction := "uptowhitespace") ) );
testresult := TestDirectory(
DirectoriesPackageLibrary("JupyterKernel", "tst"),
rec(exitGAP := true, suppressStatusMessage := true,
testOptions := rec(compareFunction := "uptowhitespace") ) );

if testresult then
Print("#I No errors detected while testing\n");
QUIT_GAP(0);
else
Print("#I Errors detected while testing\n");
QUIT_GAP(1);
fi;

# Should never get here
FORCE_QUIT_GAP(1);

0 comments on commit c192f4a

Please sign in to comment.