]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
generic/244: avoid creating too large random ID
authorEryu Guan <eguan@redhat.com>
Tue, 5 Apr 2016 01:46:31 +0000 (11:46 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 5 Apr 2016 01:46:31 +0000 (11:46 +1000)
ppc64 hosts are generating too large random IDs like 725294314141253632,
which causes all sorts of errors in test.

Fix it by using format "-t uI" for 'int' size and it works fine on all
platforms.

Signed-off-by: Eryu Guan <eguan@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/generic/244

index eb5a5ab152ef3a307076d86fe66001e1665c532a..0b50438d211f31a9f4501d8507df2fd869d2c745 100755 (executable)
@@ -83,7 +83,7 @@ ITERATIONS=100
 
 # A few extra on the off chance we get dups
 for I in `seq 1 $(($ITERATIONS+10))`; do
-       ID=`od -N 4 -t uL -An /dev/urandom | tr -d " "`
+       ID=`od -N 4 -t uI -An /dev/urandom | tr -d " "`
        echo $ID >> $tmp.1
 done