diff options
Diffstat (limited to 'testsuite/hostid/hostid-works')
-rw-r--r-- | testsuite/hostid/hostid-works | 10 |
1 files changed, 8 insertions, 2 deletions
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 @@ | |||
1 | test x$(hostid) = x$(busybox hostid) | 1 | h=x$(busybox hostid) |
2 | 2 | # Is $h a sequence of hex numbers? | |
3 | x="${h//[0123456789abcdef]/x}" | ||
4 | x="${x//xxx/x}" | ||
5 | x="${x//xxx/x}" | ||
6 | x="${x//xxx/x}" | ||
7 | x="${x//xx/x}" | ||
8 | test x"$x" = x"x" | ||