From: Sage Weil Date: Wed, 18 Apr 2018 19:38:26 +0000 (-0500) Subject: qa/workunits/rados/test.sh: ensure tee output is valid filename X-Git-Tag: v13.1.0~161^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c894d528c2df6113d3dc7cc226b6973beaa7c568;p=ceph.git qa/workunits/rados/test.sh: ensure tee output is valid filename In the future we'll add --gtest_filter bits to the items, which confuse tee. Signed-off-by: Sage Weil --- diff --git a/qa/workunits/rados/test.sh b/qa/workunits/rados/test.sh index cf6c46c8d56c5..082c638b0ec3a 100755 --- a/qa/workunits/rados/test.sh +++ b/qa/workunits/rados/test.sh @@ -27,7 +27,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