diff options
-rw-r--r-- | tests/include.rc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/include.rc b/tests/include.rc index 1e0e08cbb7c..e7d982f7e5d 100644 --- a/tests/include.rc +++ b/tests/include.rc @@ -569,7 +569,7 @@ which truncate > /dev/null || { exit 2; } - echo $newsize | egrep -q '[GTPEZY]B?$' && { + echo $newsize | egrep -q '[TPEZY]B?$' && { echo "Unit not implemented for ${newsize}" exit 2; } @@ -587,6 +587,12 @@ which truncate > /dev/null || { *M) newsize=$(( ${newsize/M/} * 1024 * 1024 )) ;; + *GB) + newsize=$(( ${newsize/GB/} * 1000 * 1000 * 1000 )) + ;; + *G) + newsize=$(( ${newsize/G/} * 1024 * 1024 * 1024 )) + ;; esac fi |