File tests-use-python3.patch of Package llvm7
Index: llvm-7.0.0rc2.src/test/BugPoint/compile-custom.ll.py
===================================================================
--- llvm-7.0.0rc2.src.orig/test/BugPoint/compile-custom.ll.py
+++ llvm-7.0.0rc2.src/test/BugPoint/compile-custom.ll.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import sys
Index: llvm-7.0.0rc2.src/test/Other/opt-bisect-helper.py
===================================================================
--- llvm-7.0.0rc2.src.orig/test/Other/opt-bisect-helper.py
+++ llvm-7.0.0rc2.src/test/Other/opt-bisect-helper.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import os
import sys
Index: llvm-7.0.0rc2.src/test/TableGen/JSON-check.py
===================================================================
--- llvm-7.0.0rc2.src.orig/test/TableGen/JSON-check.py
+++ llvm-7.0.0rc2.src/test/TableGen/JSON-check.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
import sys
import subprocess
Index: llvm-7.0.0rc2.src/test/tools/llvm-readobj/Inputs/relocs.py
===================================================================
--- llvm-7.0.0rc2.src.orig/test/tools/llvm-readobj/Inputs/relocs.py
+++ llvm-7.0.0rc2.src/test/tools/llvm-readobj/Inputs/relocs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python3
# Generates ELF, COFF and MachO object files for different architectures
# containing all relocations: