summaryrefslogtreecommitdiffstats
path: root/devices/parser-test.sh
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2008-01-03 14:46:06 +1100
committerJeremy Kerr <jk@ozlabs.org>2008-01-03 14:46:06 +1100
commitdbacb44c0ebb587b5cfcbbf84c770502c217473a (patch)
tree43c0c9cf3df61c79f0f545ed496302a296122e27 /devices/parser-test.sh
parent02aeee42aebbb3a7098b6e0fc570522f9d44de96 (diff)
downloadtalos-petitboot-dbacb44c0ebb587b5cfcbbf84c770502c217473a.tar.gz
talos-petitboot-dbacb44c0ebb587b5cfcbbf84c770502c217473a.zip
Move path maniuplation functions to devices/paths.c
This allows us to include the real functions in the parser testsuite, instead of using fakes. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
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