diff options
Diffstat (limited to 'dev-lua')
-rw-r--r-- | dev-lua/penlight/penlight-1.9.2-r101.ebuild | 17 | ||||
-rw-r--r-- | dev-lua/penlight/penlight-1.9.2.ebuild | 13 |
2 files changed, 22 insertions, 8 deletions
diff --git a/dev-lua/penlight/penlight-1.9.2-r101.ebuild b/dev-lua/penlight/penlight-1.9.2-r101.ebuild index 1b88d0b0c28f..8db997ae866e 100644 --- a/dev-lua/penlight/penlight-1.9.2-r101.ebuild +++ b/dev-lua/penlight/penlight-1.9.2-r101.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -34,14 +34,21 @@ BDEPEND=" HTML_DOCS=( "docs/." ) +src_prepare() { + default + + # This is a demo app, not a real test + rm tests/test-app.lua || die + + # Remove test for executing a non-existent command + sed -e '/most-likely-nonexistent-command/d' -i tests/test-utils3.lua || die +} + lua_src_test() { - ${ELUA} run.lua || die + "${ELUA}" run.lua || die } src_test() { - # This is a demo app, not a real test - rm tests/test-app.lua - lua_foreach_impl lua_src_test } diff --git a/dev-lua/penlight/penlight-1.9.2.ebuild b/dev-lua/penlight/penlight-1.9.2.ebuild index fee4959b0eed..e334e61a7434 100644 --- a/dev-lua/penlight/penlight-1.9.2.ebuild +++ b/dev-lua/penlight/penlight-1.9.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -32,10 +32,17 @@ BDEPEND=" HTML_DOCS=( "docs/." ) -src_test() { +src_prepare() { + default + # This is a demo app, not a real test - rm tests/test-app.lua + rm tests/test-app.lua || die + # Remove test for executing a non-existent command + sed -e '/most-likely-nonexistent-command/d' -i tests/test-utils3.lua || die +} + +src_test() { lua run.lua || die } |