[compiler-rt] a3e1b11 - [Sanitizer] Adopt Python 3 for iOS simulator test scripts

Julian Lettner via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 6 09:14:35 PDT 2021


Author: Julian Lettner
Date: 2021-04-06T09:14:14-07:00
New Revision: a3e1b1112317bace8bf77de79cb0b421d833ec70

URL: https://github.com/llvm/llvm-project/commit/a3e1b1112317bace8bf77de79cb0b421d833ec70
DIFF: https://github.com/llvm/llvm-project/commit/a3e1b1112317bace8bf77de79cb0b421d833ec70.diff

LOG: [Sanitizer] Adopt Python 3 for iOS simulator test scripts

Differential Revision: https://reviews.llvm.org/D99911

Added: 
    

Modified: 
    compiler-rt/test/sanitizer_common/ios_commands/iossim_compile.py
    compiler-rt/test/sanitizer_common/ios_commands/iossim_env.py
    compiler-rt/test/sanitizer_common/ios_commands/iossim_prepare.py
    compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/sanitizer_common/ios_commands/iossim_compile.py b/compiler-rt/test/sanitizer_common/ios_commands/iossim_compile.py
index e4c50d7949a2..9a5da6482e38 100755
--- a/compiler-rt/test/sanitizer_common/ios_commands/iossim_compile.py
+++ b/compiler-rt/test/sanitizer_common/ios_commands/iossim_compile.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import os, sys, subprocess
 
@@ -20,7 +20,7 @@
         output = args.pop(0)
 
 if output == None:
-    print "No output file name!"
+    print("No output file name!")
     sys.exit(1)
 
 ret = subprocess.call(sys.argv[1:])

diff  --git a/compiler-rt/test/sanitizer_common/ios_commands/iossim_env.py b/compiler-rt/test/sanitizer_common/ios_commands/iossim_env.py
index 78d197483df1..57a01f3852b0 100755
--- a/compiler-rt/test/sanitizer_common/ios_commands/iossim_env.py
+++ b/compiler-rt/test/sanitizer_common/ios_commands/iossim_env.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import os, sys, subprocess
 

diff  --git a/compiler-rt/test/sanitizer_common/ios_commands/iossim_prepare.py b/compiler-rt/test/sanitizer_common/ios_commands/iossim_prepare.py
index cbcc6029fc1a..b1e9bc26ad77 100755
--- a/compiler-rt/test/sanitizer_common/ios_commands/iossim_prepare.py
+++ b/compiler-rt/test/sanitizer_common/ios_commands/iossim_prepare.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import json
 

diff  --git a/compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py b/compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py
index 5ad15af3a33e..6af8de53a0db 100755
--- a/compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py
+++ b/compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import glob, os, pipes, sys, subprocess
 


        


More information about the llvm-commits mailing list