From e45a47f222da92065e2545305481bd5c658604c8 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 18 Apr 2018 14:35:49 -0500 Subject: [PATCH] qa/workunits/rados/test-upgrade-to-mimic.sh: fix tee output Signed-off-by: Sage Weil --- qa/workunits/rados/test-upgrade-to-mimic.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.47.3