summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2017-09-11 10:30:41 -0400
committerMike Gilbert <floppym@gentoo.org>2017-09-14 15:05:32 -0400
commitf48f6febd88031c2e257188f0921d75d455b7abe (patch)
tree14c31fe509e96bef70a9c73af3bd8bd9f016fe10 /eclass/tests
parentmultiprocessing.eclass: make loadavg regex work for float values (diff)
downloadgentoo-f48f6febd88031c2e257188f0921d75d455b7abe.tar.gz
gentoo-f48f6febd88031c2e257188f0921d75d455b7abe.tar.bz2
gentoo-f48f6febd88031c2e257188f0921d75d455b7abe.zip
multiprocessing.eclass: add tests for float values
Bug: https://bugs.gentoo.org/630626
Diffstat (limited to 'eclass/tests')
-rwxr-xr-xeclass/tests/multiprocessing_makeopts_loadavg.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/tests/multiprocessing_makeopts_loadavg.sh b/eclass/tests/multiprocessing_makeopts_loadavg.sh
index a03bf0ca8799..d17d7734b9f2 100755
--- a/eclass/tests/multiprocessing_makeopts_loadavg.sh
+++ b/eclass/tests/multiprocessing_makeopts_loadavg.sh
@@ -15,7 +15,7 @@ test-makeopts_loadavg() {
tend 1 "Mismatch between MAKEOPTS/cli: '${indirect}' != '${direct}'"
else
[[ ${direct} == "${exp}" ]]
- tend $? "Got back: ${act}"
+ tend $? "Got back: ${direct}"
fi
}
@@ -35,6 +35,8 @@ tests=(
999 "-kl"
4 "-kl4"
5 "-kl 5"
+ 2.3 "-l 2.3"
+ 999 "-l 2.3.4"
)
for (( i = 0; i < ${#tests[@]}; i += 2 )) ; do
test-makeopts_loadavg "${tests[i]}" "${tests[i+1]}"