From b405389460b46f807f2404a4e65b0a44b8b3f236 Mon Sep 17 00:00:00 2001 From: "robert.read" Date: Wed, 30 Jul 2008 23:41:48 +0000 Subject: [PATCH] Branch HEAD b=16095 i=grev If UPDATE_TITLE=true, acc-sm will update the xterm titlebar with the current running test. Also, the regular test script name can be used in ACC_SM_ONLY. --- lustre/tests/acceptance-small.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lustre/tests/acceptance-small.sh b/lustre/tests/acceptance-small.sh index 90c5453..b6fe84d 100755 --- a/lustre/tests/acceptance-small.sh +++ b/lustre/tests/acceptance-small.sh @@ -30,6 +30,7 @@ if [ "$ACC_SM_ONLY" ]; then export ${O}="no" done for O in $ACC_SM_ONLY; do + O=`echo ${O%.sh} | tr "-" "_"` O=`echo $O | tr "[:lower:]" "[:upper:]"` export ${O}="yes" done @@ -61,6 +62,16 @@ setup_if_needed() { } title() { + # update titlebar if stdin is attaached to an xterm + if ${UPDATE_TITLEBAR:-false}; then + if tty -s; then + case $TERM in + xterm*) + echo -ne "\033]2; acceptance-small: $* \007" >&0 + ;; + esac + fi + fi log "-----============= acceptance-small: "$*" ============----- `date`" RANTEST=${RANTEST}$*", " } -- 1.8.3.1