summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Fagerstedt <axel.fagerstedt@linaro.org>2013-03-20 13:33:20 +0100
committerAxel Fagerstedt <axel.fagerstedt@linaro.org>2013-03-22 11:35:44 +0100
commitda135c9b2f728ad2298465b3df60d7b1c6b4c38b (patch)
tree29ce8a297b13c2e0ab336eb018836981240fd516
parente0a2edabfabd41bb357e1b8c2bfbbacdea8a0cd5 (diff)
downloadlinaro-android-kernel-test-da135c9b2f728ad2298465b3df60d7b1c6b4c38b.tar.gz
Update logging to improve lava presentation
-rwxr-xr-xlinaro-android-kernel-tests.sh4
-rw-r--r--sync-basic/sync-basic.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/linaro-android-kernel-tests.sh b/linaro-android-kernel-tests.sh
index 7345c03..352c7fc 100755
--- a/linaro-android-kernel-tests.sh
+++ b/linaro-android-kernel-tests.sh
@@ -32,10 +32,10 @@ run_ashmemtest_expanded()
diff $DIR/tmp.out $DIR/$TESTNAME.out > /dev/null
if [ $? -eq 0 ]; then
cat $DIR/tmp.out
- echo "[$TESTNAME]: test passed"
+ echo "[ashmem_expanded_$TESTNAME]: test passed"
else
cat $DIR/tmp.out
- echo "[$TESTNAME]: test failed"
+ echo "[ashmem_expanded_$TESTNAME]: test failed"
fi
rm $DIR/tmp.out
done
diff --git a/sync-basic/sync-basic.c b/sync-basic/sync-basic.c
index 723f122..7aa2e82 100644
--- a/sync-basic/sync-basic.c
+++ b/sync-basic/sync-basic.c
@@ -56,7 +56,7 @@ void fatal (int error, const char *fmt, ...)
va_end (ap);
fprintf (stderr, "\n");
/* printf(RED); */
- printf ("%d [%s]: test failed\n", testno, testname);
+ printf ("%d [sync_basic_%s]: test failed\n", testno, testname);
/* printf(NORMAL); */
exit (1);
}
@@ -75,7 +75,7 @@ void pass (const char *fmt, ...)
}
fprintf (stderr, "\n");
/* printf(GREEN); */
- printf ("%d [%s]: test passed\n", testno, testname);
+ printf ("%d [sync_basic_%s]: test passed\n", testno, testname);
/* printf(NORMAL); */
}
@@ -328,7 +328,7 @@ int main (int argc, char *argv[])
{
/* 0 - just try to open */
testno++;
- strcpy (testname, "try-open");
+ strcpy (testname, "try_open");
sw_fd = open (SW_SYNC_DEV, O_RDWR);
if (sw_fd < 0)
fatal (errno, "can't open '%s'", SW_SYNC_DEV);