diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2008-01-03 14:46:06 +1100 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2008-01-03 14:46:06 +1100 |
commit | dbacb44c0ebb587b5cfcbbf84c770502c217473a (patch) | |
tree | 43c0c9cf3df61c79f0f545ed496302a296122e27 /devices/parser-test.sh | |
parent | 02aeee42aebbb3a7098b6e0fc570522f9d44de96 (diff) | |
download | talos-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-x | devices/parser-test.sh | 8 |
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" - } |