summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2024-01-12 15:51:52 -0500
committerMichael Orlitzky <mjo@gentoo.org>2024-01-22 06:29:16 -0500
commit39856163a9c90c26a1d6e50a6bcfcfbcad7d1917 (patch)
treefaa650d26e245bb9e6e83493f85877c83eb0a19b /eclass/gap-pkg.eclass
parenteclass/gap-pkg.eclass: improve configure script wording (diff)
downloadgentoo-39856163a9c90c26a1d6e50a6bcfcfbcad7d1917.tar.gz
gentoo-39856163a9c90c26a1d6e50a6bcfcfbcad7d1917.tar.bz2
gentoo-39856163a9c90c26a1d6e50a6bcfcfbcad7d1917.zip
gap-pkg.eclass: ForceQuitGap after running tests
This should handle a few additional exit-code corner cases. Suggested-by: Max Horn <horn@mathematik.uni-kl.de> Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'eclass/gap-pkg.eclass')
-rw-r--r--eclass/gap-pkg.eclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/eclass/gap-pkg.eclass b/eclass/gap-pkg.eclass
index 83173dce7f92..fbcbac3cd49e 100644
--- a/eclass/gap-pkg.eclass
+++ b/eclass/gap-pkg.eclass
@@ -232,7 +232,12 @@ gap-pkg_src_test() {
# the "-r" flag here because we use the UserGapRoot directory to
# store AtlasRep data, and without it, the atlasrep tests (and the
# tests of any packages depending on it) will fail.
- local gapcmd="gap -R ${bareflag} --nointeract -c TestPackage(\"${PN}\");"
+ local gapcmd="gap -R ${bareflag} --nointeract"
+
+ # ForceQuitGap translates a boolean return value to the expected
+ # zero or one, useful for packages that set a single *.tst file as
+ # their TestFile.
+ gapcmd+=" -c ForceQuitGap(TestPackage(\"${PN}\"));"
# Fake the directory structure that GAP needs to be able to find
# packages with a symlink under ${T}, then prepend ${T} to the list