summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2021-05-12 16:12:03 -0400
committerMike Gilbert <floppym@gentoo.org>2021-05-12 16:54:56 -0400
commitb13d8ea802f395645a7364088a1a74738e7aecda (patch)
tree3807374e4dabd6c40c75ce24dd8644665d0b5a63 /eclass/tests
parentnet-dns/pdns: Mark 4.4.1 stable on amd64/x86 (diff)
downloadgentoo-b13d8ea802f395645a7364088a1a74738e7aecda.tar.gz
gentoo-b13d8ea802f395645a7364088a1a74738e7aecda.tar.bz2
gentoo-b13d8ea802f395645a7364088a1a74738e7aecda.zip
eclass/tests: eat optional arguments passed to has_version
portageq has_version does not understand arguments like -b or --host-root. This fixes tests for autotools.eclass. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'eclass/tests')
-rw-r--r--eclass/tests/tests-common.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/eclass/tests/tests-common.sh b/eclass/tests/tests-common.sh
index 2fc849cb69a7..a677842b6ac5 100644
--- a/eclass/tests/tests-common.sh
+++ b/eclass/tests/tests-common.sh
@@ -61,6 +61,9 @@ die() {
}
has_version() {
+ while [[ $1 == -* ]]; do
+ shift
+ done
portageq has_version / "$@"
}