summaryrefslogtreecommitdiffstats
path: root/devices/parser-test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'devices/parser-test.sh')
-rwxr-xr-xdevices/parser-test.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/devices/parser-test.sh b/devices/parser-test.sh
index 351dc75..cdd814b 100755
--- a/devices/parser-test.sh
+++ b/devices/parser-test.sh
@@ -1,11 +1,17 @@
#!/bin/bash
testdir=devices/parser-tests
+default_rootdev=ps3da1
function test_dir()
{
dir="$1"
- ./parser-test "$dir" 2>/dev/null |
+ rootdev=$default_rootdev
+ if [ -e "$dir/rootdev" ]
+ then
+ rootdev=$(cat "$dir/rootdev")
+ fi
+ ./parser-test "$dir" $rootdev 2>/dev/null |
diff -u "$dir/expected-output" -
}
OpenPOWER on IntegriCloud