From: Erez_Zadok Date: Thu, 12 Jul 2007 02:20:10 +0000 (-0400) Subject: show helpful cramfs state in a different color X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=88721c4d115a0d7be76ac1fd92f047f1a1627d2c;p=unionfs-regression.git show helpful cramfs state in a different color This helps distinguish these messages from the state of the test messages. --- 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