From 3a3b85d3d1eb684e7e2ee3e0682c639d362e67c2 Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Fri, 6 Aug 2021 15:32:59 +0000 Subject: round-robin.sh: Fix assertion for cross-testing using QEMU Change-Id: I698e6991d7439044fc67b0ead48d7c513b83382c --- round-robin.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/round-robin.sh b/round-robin.sh index f6bc2445..427ac181 100644 --- a/round-robin.sh +++ b/round-robin.sh @@ -393,8 +393,9 @@ build_abe () # QEMU can't handle TSan's shadow memory and it sends host machine # into swap. if $check && [ x"$project" = x"gcc" ]; then - assert_with_msg "ERROR: Testing is not using QEMU" \ - ! echo "$stage" | grep -q -e "--testcontainer" + if echo "$stage" | grep -q -e "--testcontainer"; then + assert_with_msg "ERROR: Testing is not using QEMU" false + fi sed -i \ -e 's/set dg-do-what-default run/set dg-do-what-default link' \ ../gcc/gcc/testsuite/lib/tsan-dg.exp -- cgit v1.2.3