gnome-extra/cjs: RESTRICT=test and fix a bunch of test failures
authorKristian Fiskerstrand <k_f@gentoo.org>
Mon, 2 Apr 2018 17:20:59 +0000 (19:20 +0200)
committerKristian Fiskerstrand <k_f@gentoo.org>
Mon, 2 Apr 2018 18:36:01 +0000 (20:36 +0200)
Fix a number of test failures related to console execution missing
compat symlink. Down to 2 remaining errors, but this test suite is flaky
enough and its not a reason to hold up the stabilization any longer so
adding a RESTRICT=test for now

Bug: https://bugs.gentoo.org/649534

Package-Manager: Portage-2.3.24, Repoman-2.3.6

gnome-extra/cjs/cjs-3.6.1.ebuild

index 23afc9055f7d45acbfcf15a9af6e5ed612dab6eb..d0ae7f565acce27967f36fd0871463df17a57593 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -34,9 +34,23 @@ RDEPEND="${RDEPEND}
        !<gnome-extra/cinnamon-2.4
 "
 
+RESTRICT="test"
+
 src_prepare() {
        eautoreconf
        gnome2_src_prepare
+       sed -ie "s/gjs-console/cjs-console/g" \
+               "${S}"/installed-tests/scripts/testCommandLine.sh \
+               "${S}"/installed-tests/scripts/testWarnings.sh || die
+
+       sed -ie "s/Gjs-WARNING/Cjs-WARNING/g" \
+               "${S}"/installed-tests/scripts/testCommandLine.sh || die
+
+       sed -ie "s/'Gjs'/'Cjs'/g" \
+               "${S}"/installed-tests/js/testExceptions.js \
+               "${S}"/installed-tests/js/testSignals.js \
+               "${S}"/installed-tests/js/testGDBus.js \
+               "${S}"/installed-tests/js/testEverythingBasic.js || die
 }
 
 src_configure() {