summaryrefslogtreecommitdiff
path: root/tests/fdtput-runtest.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fdtput-runtest.sh')
-rw-r--r--tests/fdtput-runtest.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/fdtput-runtest.sh b/tests/fdtput-runtest.sh
index dbd9c0d..527a968 100644
--- a/tests/fdtput-runtest.sh
+++ b/tests/fdtput-runtest.sh
@@ -28,11 +28,12 @@ verbose_run_check $VALGRIND "$DTPUT" "$dtb" "$node" "$property" $value $flags
# Now fdtget to read the value
verbose_run_log_check "$LOG" $VALGRIND "$DTGET" "$dtb" "$node" "$property" $flags
-diff $EXPECT $LOG
-ret="$?"
-
-if [ "$ret" -eq 0 ]; then
- PASS
+if cmp $EXPECT $LOG >/dev/null; then
+ PASS
else
- FAIL
+ if [ -z "$QUIET_TEST" ]; then
+ echo "EXPECTED :-:"
+ cat $EXPECT
+ fi
+ FAIL "Results differ from expected"
fi