File: python3-test-fix.patch

package info (click to toggle)
libesedb 20240420-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 16,892 kB
  • sloc: ansic: 264,937; sh: 6,589; makefile: 1,785; cpp: 385; python: 363; sed: 16
file content (22 lines) | stat: -rw-r--r-- 708 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Index: libfsext-private/tests/test_runner.sh
===================================================================
--- libfsext-private.orig/tests/test_runner.sh
+++ libfsext-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