]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: fix pytest detection unsupported message.
authorMartin Liska <mliska@suse.cz>
Wed, 19 Jan 2022 06:37:42 +0000 (07:37 +0100)
committerMartin Liska <mliska@suse.cz>
Wed, 19 Jan 2022 06:37:42 +0000 (07:37 +0100)
PR testsuite/104109

gcc/testsuite/ChangeLog:

* lib/gcov.exp: Fix pytest detection unsupported message.

gcc/testsuite/lib/gcov.exp

index 6c57515e229efbf19fdcfb2c403cdd3babe4190f..9d5b2cdb86bbecac463fb1f850a1049c80c0514e 100644 (file)
@@ -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\]*"