From c894d528c2df6113d3dc7cc226b6973beaa7c568 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 18 Apr 2018 14:38:26 -0500 Subject: [PATCH] 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 --- qa/workunits/rados/test.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5