aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-01-19 07:37:42 +0100
committerMartin Liska <mliska@suse.cz>2022-01-19 07:37:42 +0100
commitb01d2059c703d447827cc82e0e27e460a38bfa9f (patch)
tree0277bee00e13589728abe23a5e746041b12e2198 /gcc
parentfc6cd798c07a94d6b0bcc16b175e6e5d6e594c7e (diff)
downloadgcc-b01d2059c703d447827cc82e0e27e460a38bfa9f.zip
gcc-b01d2059c703d447827cc82e0e27e460a38bfa9f.tar.gz
gcc-b01d2059c703d447827cc82e0e27e460a38bfa9f.tar.bz2
testsuite: fix pytest detection unsupported message.
PR testsuite/104109 gcc/testsuite/ChangeLog: * lib/gcov.exp: Fix pytest detection unsupported message.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/lib/gcov.exp5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/testsuite/lib/gcov.exp b/gcc/testsuite/lib/gcov.exp
index 6c57515..9d5b2cd 100644
--- a/gcc/testsuite/lib/gcov.exp
+++ b/gcc/testsuite/lib/gcov.exp
@@ -276,14 +276,13 @@ proc run-gcov-pytest { args } {
set testcase [remote_download host $testcase]
set result [remote_exec host $GCOV "$testcase -i"]
+ set pytest_script [lindex $args 1]
if { ![check_effective_target_pytest3] } {
- unsupported "$script pytest python3 is missing"
+ unsupported "$pytest_script pytest python3 is missing"
return
}
- set pytest_script [lindex $args 1]
setenv GCOV_PATH $testcase
- verbose "pytest_script: $srcdir $subdir $pytest_script" 2
spawn -noecho python3 -m pytest --color=no -rap -s --tb=no $srcdir/$subdir/$pytest_script
set prefix "\[^\r\n\]*"