From: Sage Weil Date: Wed, 18 Apr 2018 19:35:49 +0000 (-0500) Subject: qa/workunits/rados/test-upgrade-to-mimic.sh: fix tee output X-Git-Tag: v12.2.5~6^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F21506%2Fhead;p=ceph.git qa/workunits/rados/test-upgrade-to-mimic.sh: fix tee output Signed-off-by: Sage Weil --- diff --git a/qa/workunits/rados/test-upgrade-to-mimic.sh b/qa/workunits/rados/test-upgrade-to-mimic.sh index 461e438ba759..ad18c50a424f 100755 --- a/qa/workunits/rados/test-upgrade-to-mimic.sh +++ b/qa/workunits/rados/test-upgrade-to-mimic.sh @@ -26,7 +26,8 @@ for f in \ do if [ $parallel -eq 1 ]; then r=`printf '%25s' $f` - bash -o pipefail -exc "ceph_test_rados_$f $color 2>&1 | tee ceph_test_rados_$f.log | sed \"s/^/$r: /\"" & + ff=`echo $f | awk '{print $1}'` + bash -o pipefail -exc "ceph_test_rados_$f $color 2>&1 | tee ceph_test_rados_$ff.log | sed \"s/^/$r: /\"" & pid=$! echo "test $f on pid $pid" pids[$f]=$pid