Gitweb:
https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=7665304604bad894afe...
Commit: 7665304604bad894afed5e372263e48b309927d7
Parent: 591ac0828af73ac9a134660a643ef234ff57c02e
Author: Marian Csontos <mcsontos(a)redhat.com>
AuthorDate: Tue Nov 28 09:05:02 2017 +0100
Committer: Marian Csontos <mcsontos(a)redhat.com>
CommitterDate: Tue Nov 28 09:21:05 2017 +0100
tests: Die on bad argument
---
test/lib/aux.sh | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/test/lib/aux.sh b/test/lib/aux.sh
index b8a0cc0..97111c7 100644
--- a/test/lib/aux.sh
+++ b/test/lib/aux.sh
@@ -911,6 +911,7 @@ common_dev_() {
for fromlen in "${@-0:}"; do
from=${fromlen%%:*}
+ test "$from" = "$fromlen" || die "Bad argument: Missing
':' in FROM:[LEN] argument"
len=${fromlen##*:}
test -n "$len" || len=$(( size - from ))
diff=$(( from - pos ))