File: python3-test-fix.patch

package info (click to toggle)
libfshfs 20260130-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 16,968 kB
  • sloc: ansic: 276,743; sh: 6,860; makefile: 1,653; python: 424; cpp: 391; sed: 16
file content (22 lines) | stat: -rw-r--r-- 708 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: libfshfs-private/tests/test_runner.sh
===================================================================
--- libfshfs-private.orig/tests/test_runner.sh
+++ libfshfs-private/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