File: python3-test-fix.patch

package info (click to toggle)
libregf 20240421-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 14,128 kB
  • sloc: ansic: 214,775; sh: 6,480; makefile: 1,508; python: 382; cpp: 307; sed: 16
file content (22 lines) | stat: -rw-r--r-- 681 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Index: libregf/tests/test_runner.sh
===================================================================
--- libregf.orig/tests/test_runner.sh
+++ libregf/tests/test_runner.sh
@@ -445,7 +445,7 @@ run_test_with_arguments()
 
 	if test ${IS_PYTHON_SCRIPT} -eq 0 && test -z ${PYTHON};
 	then
-		local PYTHON=`which python 2> /dev/null`;
+		local PYTHON=`which python3 python 2> /dev/null`;
 
 		if ! test -x ${PYTHON};
 		then
@@ -765,7 +765,7 @@ run_test_with_input_and_arguments()
 
 	if test ${IS_PYTHON_SCRIPT} -eq 0 && test -z ${PYTHON};
 	then
-		local PYTHON=`which python 2> /dev/null`;
+		local PYTHON=`which python3 python 2> /dev/null`;
 
 		if ! test -x ${PYTHON};
 		then