From 88721c4d115a0d7be76ac1fd92f047f1a1627d2c Mon Sep 17 00:00:00 2001 From: Erez_Zadok Date: Wed, 11 Jul 2007 22:20:10 -0400 Subject: [PATCH] show helpful cramfs state in a different color This helps distinguish these messages from the state of the test messages. --- run-tests | 2 +- scaffold | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/run-tests b/run-tests index 8b38544..d9f7f18 100755 --- a/run-tests +++ b/run-tests @@ -219,7 +219,7 @@ do # Export the type of file systems, as some tests need to know. # For example: jffs2, cramfs, and squashfs. - export FS0 FS1 FS2 FS3 DEV0 DEV1 DEV2 DEV3 SPECIAL_FS delay + export FS0 FS1 FS2 FS3 DEV0 DEV1 DEV2 DEV3 SPECIAL_FS delay OUTPUT_COLOR # run actual test and abort on error (test script tries to umount unionfs) runcmd bash $t diff --git a/scaffold b/scaffold index 4237282..dd0f2ca 100644 --- a/scaffold +++ b/scaffold @@ -146,7 +146,9 @@ function cramit { dir=`echo $n | sed 's/=ro//g'` i=`echo $n | tr -dc '[0-9]'` dev=$(eval echo \$DEV$i) - echo -n "${fs}@${dev} " + # show internal state in yellow + echo -e -n "\033[1;33m${fs}@/n/lower/b$i\033[m " + test -n "$OUTPUT_COLOR" && echo -e -n "\033[${OUTPUT_COLOR}m" tmpimg=/tmp/$fs.img.$i runcmd mkfs -t $fs /n/lower/b$i $tmpimg runcmd mount -t $fs -o loop $tmpimg /n/lower/b$i -- 2.43.0