Browse Source

Remove redundant fdtdump test code

The overall test runner script, for the fdtdump tests invokes the helper
script fdtdump-runtest.sh.  It then includes directly some code very
similar to fdtdump-runtest.sh, which is never reached due to a "return".

Remove the never-reached test code.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
main
David Gibson 9 years ago
parent
commit
067829ea5f
  1. 15
      tests/run_tests.sh

15
tests/run_tests.sh

@ -645,21 +645,6 @@ utilfdt_tests () { @@ -645,21 +645,6 @@ utilfdt_tests () {

fdtdump_tests () {
run_fdtdump_test fdtdump.dts
return

local dts=fdtdump.dts
local dtb=fdtdump.dts.dtb
local out=fdtdump.dts.out
run_dtc_test -O dtb $dts -o ${dtb}
$FDTDUMP ${dtb} | grep -v "//" >${out}
if cmp $dts $out >/dev/null; then
PASS
else
if [ -z "$QUIET_TEST" ]; then
diff -w fdtdump.dts $out
fi
FAIL "Results differ from expected"
fi
}

while getopts "vt:me" ARG ; do

Loading…
Cancel
Save