diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-09-28 03:11:19 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-09-28 03:11:19 +0100 |
commit | 1bc9c3b9d5a8c51b67f6ea2f57bdd76ff5073097 (patch) | |
tree | 8ff3b237086572800bda4afb971fc61617aa941e /eclass/tests/tests-common.sh | |
parent | 3ca7a521e79841f7247feb67780a70722c997d55 (diff) |
gentoo auto-resync : 28:09:2022 - 03:11:19
Diffstat (limited to 'eclass/tests/tests-common.sh')
-rw-r--r-- | eclass/tests/tests-common.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/eclass/tests/tests-common.sh b/eclass/tests/tests-common.sh index a677842b6ac5..45b1e20b933a 100644 --- a/eclass/tests/tests-common.sh +++ b/eclass/tests/tests-common.sh @@ -60,6 +60,13 @@ die() { exit 1 } +assert() { + local x pipestatus=${PIPESTATUS[*]} + for x in ${pipestatus} ; do + [[ ${x} -eq 0 ]] || die "$@" + done +} + has_version() { while [[ $1 == -* ]]; do shift |