]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/workunits/rados/test.sh: ensure tee output is valid filename 21507/head
authorSage Weil <sage@redhat.com>
Wed, 18 Apr 2018 19:38:26 +0000 (14:38 -0500)
committerSage Weil <sage@redhat.com>
Wed, 18 Apr 2018 19:38:26 +0000 (14:38 -0500)
In the future we'll add --gtest_filter bits to the items, which confuse
tee.

Signed-off-by: Sage Weil <sage@redhat.com>
qa/workunits/rados/test.sh

index cf6c46c8d56c5929aad604e077dbe3442a5b51f8..082c638b0ec3a8d00e93d6c4a4fc507d31dafdbc 100755 (executable)
@@ -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