hush/testsuite/hostid/hostid-works
Denys Vlasenko e82cf339e4 randomtest fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-05-12 15:59:32 +02:00

9 lines
168 B
Plaintext

h=x$(busybox hostid)
# Is $h a sequence of hex numbers?
x="${h//[0123456789abcdef]/x}"
x="${x//xxx/x}"
x="${x//xxx/x}"
x="${x//xxx/x}"
x="${x//xx/x}"
test x"$x" = x"x"