From e82cf339e476126e4016e417aee3c6eb52c702c9 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 12 May 2010 15:59:32 +0200 Subject: randomtest fixes Signed-off-by: Denys Vlasenko --- testsuite/hostid/hostid-works | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'testsuite/hostid') diff --git a/testsuite/hostid/hostid-works b/testsuite/hostid/hostid-works index e85698e66..bcfd717af 100644 --- a/testsuite/hostid/hostid-works +++ b/testsuite/hostid/hostid-works @@ -1,2 +1,8 @@ -test x$(hostid) = x$(busybox hostid) - +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" -- cgit v1.2.3