diff --git a/wa/commands/templates/uiauto/uiauto_build_script b/wa/commands/templates/uiauto/uiauto_build_script index ba15b628..b1f4d617 100644 --- a/wa/commands/templates/uiauto/uiauto_build_script +++ b/wa/commands/templates/uiauto/uiauto_build_script @@ -16,7 +16,7 @@ fi # Copy base class library from wlauto dist libs_dir=app/libs -base_class=`python -c "import os, wa; print os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar')"` +base_class=`python3 -c "import os, wa; print(os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar'))"` mkdir -p $$libs_dir cp $$base_class $$libs_dir diff --git a/wa/workloads/adobereader/uiauto/build.sh b/wa/workloads/adobereader/uiauto/build.sh index 8420bd81..ef53ca80 100755 --- a/wa/workloads/adobereader/uiauto/build.sh +++ b/wa/workloads/adobereader/uiauto/build.sh @@ -31,7 +31,7 @@ fi # Copy base class library from wa dist libs_dir=app/libs -base_class=`python -c "import os, wa; print os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar')"` +base_class=`python3 -c "import os, wa; print(os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar'))"` mkdir -p $libs_dir cp $base_class $libs_dir diff --git a/wa/workloads/aitutu/uiauto/build.sh b/wa/workloads/aitutu/uiauto/build.sh index 75f3a090..925e3e51 100755 --- a/wa/workloads/aitutu/uiauto/build.sh +++ b/wa/workloads/aitutu/uiauto/build.sh @@ -31,7 +31,7 @@ fi # Copy base class library from wa dist libs_dir=app/libs -base_class=`python -c "import os, wa; print os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar')"` +base_class=`python3 -c "import os, wa; print(os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar'))"` mkdir -p $libs_dir cp $base_class $libs_dir diff --git a/wa/workloads/androbench/uiauto/build.sh b/wa/workloads/androbench/uiauto/build.sh index ffd34cbb..5d2496c8 100755 --- a/wa/workloads/androbench/uiauto/build.sh +++ b/wa/workloads/androbench/uiauto/build.sh @@ -31,7 +31,7 @@ fi # Copy base class library from wa dist libs_dir=app/libs -base_class=`python -c "import os, wa; print os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar')"` +base_class=`python3 -c "import os, wa; print(os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar'))"` mkdir -p $libs_dir cp $base_class $libs_dir diff --git a/wa/workloads/antutu/uiauto/build.sh b/wa/workloads/antutu/uiauto/build.sh index c2823b39..96ba433a 100755 --- a/wa/workloads/antutu/uiauto/build.sh +++ b/wa/workloads/antutu/uiauto/build.sh @@ -31,7 +31,7 @@ fi # Copy base class library from wa dist libs_dir=app/libs -base_class=`python -c "import os, wa; print os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar')"` +base_class=`python3 -c "import os, wa; print(os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar'))"` mkdir -p $libs_dir cp $base_class $libs_dir diff --git a/wa/workloads/applaunch/uiauto/build.sh b/wa/workloads/applaunch/uiauto/build.sh index 2e82b1e5..5e249b56 100755 --- a/wa/workloads/applaunch/uiauto/build.sh +++ b/wa/workloads/applaunch/uiauto/build.sh @@ -31,7 +31,7 @@ fi # Copy base class library from wa dist libs_dir=app/libs -base_class=`python -c "import os, wa; print os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar')"` +base_class=`python3 -c "import os, wa; print(os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar'))"` mkdir -p $libs_dir cp $base_class $libs_dir diff --git a/wa/workloads/benchmarkpi/uiauto/build.sh b/wa/workloads/benchmarkpi/uiauto/build.sh index 86a7ec0f..bf9efecb 100755 --- a/wa/workloads/benchmarkpi/uiauto/build.sh +++ b/wa/workloads/benchmarkpi/uiauto/build.sh @@ -31,7 +31,7 @@ fi # Copy base class library from wa dist libs_dir=app/libs -base_class=`python -c "import os, wa; print os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar')"` +base_class=`python3 -c "import os, wa; print(os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar'))"` mkdir -p $libs_dir cp $base_class $libs_dir diff --git a/wa/workloads/chrome/uiauto/build.sh b/wa/workloads/chrome/uiauto/build.sh index 1a3cd48d..d3316ece 100755 --- a/wa/workloads/chrome/uiauto/build.sh +++ b/wa/workloads/chrome/uiauto/build.sh @@ -31,7 +31,7 @@ fi # Copy base class library from wlauto dist libs_dir=app/libs -base_class=`python -c "import os, wa; print os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar')"` +base_class=`python3 -c "import os, wa; print(os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar'))"` mkdir -p $libs_dir cp $base_class $libs_dir diff --git a/wa/workloads/geekbench/uiauto/build.sh b/wa/workloads/geekbench/uiauto/build.sh index 5d4553df..e4f5ad6d 100755 --- a/wa/workloads/geekbench/uiauto/build.sh +++ b/wa/workloads/geekbench/uiauto/build.sh @@ -34,7 +34,7 @@ fi # Copy base class library from wa dist libs_dir=app/libs -base_class=`python -c "import os, wa; print os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar')"` +base_class=`python3 -c "import os, wa; print(os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar'))"` mkdir -p $libs_dir cp $base_class $libs_dir diff --git a/wa/workloads/gfxbench/uiauto/build.sh b/wa/workloads/gfxbench/uiauto/build.sh index a5f34b32..cc1c4d20 100755 --- a/wa/workloads/gfxbench/uiauto/build.sh +++ b/wa/workloads/gfxbench/uiauto/build.sh @@ -16,7 +16,7 @@ fi # Copy base class library from wa dist libs_dir=app/libs -base_class=`python -c "import os, wa; print os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar')"` +base_class=`python3 -c "import os, wa; print(os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar'))"` mkdir -p $libs_dir cp $base_class $libs_dir diff --git a/wa/workloads/glbenchmark/uiauto/build.sh b/wa/workloads/glbenchmark/uiauto/build.sh index 2bf6bf5b..8b7554f7 100755 --- a/wa/workloads/glbenchmark/uiauto/build.sh +++ b/wa/workloads/glbenchmark/uiauto/build.sh @@ -16,7 +16,7 @@ fi # Copy base class library from wa dist libs_dir=app/libs -base_class=`python -c "import os, wa; print os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar')"` +base_class=`python3 -c "import os, wa; print(os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar'))"` mkdir -p $libs_dir cp $base_class $libs_dir diff --git a/wa/workloads/gmail/uiauto/build.sh b/wa/workloads/gmail/uiauto/build.sh index ebb6774a..d9a32a61 100755 --- a/wa/workloads/gmail/uiauto/build.sh +++ b/wa/workloads/gmail/uiauto/build.sh @@ -31,7 +31,7 @@ fi # Copy base class library from wa dist libs_dir=app/libs -base_class=`python -c "import os, wa; print os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar')"` +base_class=`python3 -c "import os, wa; print(os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar'))"` mkdir -p $libs_dir cp $base_class $libs_dir diff --git a/wa/workloads/googlemaps/uiauto/build.sh b/wa/workloads/googlemaps/uiauto/build.sh index f2bf50a6..96b985f4 100755 --- a/wa/workloads/googlemaps/uiauto/build.sh +++ b/wa/workloads/googlemaps/uiauto/build.sh @@ -31,7 +31,7 @@ fi # Copy base class library from wlauto dist libs_dir=app/libs -base_class=`python -c "import os, wa; print os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar')"` +base_class=`python3 -c "import os, wa; print(os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar'))"` mkdir -p $libs_dir cp $base_class $libs_dir diff --git a/wa/workloads/googlephotos/uiauto/build.sh b/wa/workloads/googlephotos/uiauto/build.sh index 3161c4d8..58a63d5f 100755 --- a/wa/workloads/googlephotos/uiauto/build.sh +++ b/wa/workloads/googlephotos/uiauto/build.sh @@ -31,7 +31,7 @@ fi # Copy base class library from wa dist libs_dir=app/libs -base_class=`python -c "import os, wa; print os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar')"` +base_class=`python3 -c "import os, wa; print(os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar'))"` mkdir -p $libs_dir cp $base_class $libs_dir diff --git a/wa/workloads/googleplaybooks/uiauto/build.sh b/wa/workloads/googleplaybooks/uiauto/build.sh index 6a3e222c..a260123f 100755 --- a/wa/workloads/googleplaybooks/uiauto/build.sh +++ b/wa/workloads/googleplaybooks/uiauto/build.sh @@ -32,7 +32,7 @@ fi # Copy base class library from wa dist libs_dir=app/libs mkdir -p $libs_dir -base_class=`python -c "import os, wa; print os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar')"` +base_class=`python3 -c "import os, wa; print(os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar'))"` cp $base_class $libs_dir # Build and return appropriate exit code if failed diff --git a/wa/workloads/googleslides/uiauto/build.sh b/wa/workloads/googleslides/uiauto/build.sh index 2be38737..cd9e7018 100755 --- a/wa/workloads/googleslides/uiauto/build.sh +++ b/wa/workloads/googleslides/uiauto/build.sh @@ -31,7 +31,7 @@ fi # Copy base classes from wa dist libs_dir=app/libs -base_class=`python -c "import os, wa; print os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar')"` +base_class=`python3 -c "import os, wa; print(os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar'))"` mkdir -p $libs_dir cp $base_class $libs_dir diff --git a/wa/workloads/motionmark/uiauto/build.sh b/wa/workloads/motionmark/uiauto/build.sh index 86a3152f..1b2434f3 100755 --- a/wa/workloads/motionmark/uiauto/build.sh +++ b/wa/workloads/motionmark/uiauto/build.sh @@ -31,7 +31,7 @@ fi # Copy base class library from wa dist libs_dir=app/libs -base_class=`python -c "import os, wa; print os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar')"` +base_class=`python3 -c "import os, wa; print(os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar'))"` mkdir -p $libs_dir cp $base_class $libs_dir diff --git a/wa/workloads/pcmark/uiauto/build.sh b/wa/workloads/pcmark/uiauto/build.sh index 1ccff9f7..35cbba1d 100755 --- a/wa/workloads/pcmark/uiauto/build.sh +++ b/wa/workloads/pcmark/uiauto/build.sh @@ -31,7 +31,7 @@ fi # Copy base class library from wa dist libs_dir=app/libs -base_class=`python -c "import os, wa; print os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar')"` +base_class=`python3 -c "import os, wa; print(os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar'))"` mkdir -p $libs_dir cp $base_class $libs_dir diff --git a/wa/workloads/speedometer/uiauto/build.sh b/wa/workloads/speedometer/uiauto/build.sh index e9041ea9..237c0b92 100755 --- a/wa/workloads/speedometer/uiauto/build.sh +++ b/wa/workloads/speedometer/uiauto/build.sh @@ -31,7 +31,7 @@ fi # Copy base class library from wa dist libs_dir=app/libs -base_class=`python -c "import os, wa; print os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar')"` +base_class=`python3 -c "import os, wa; print(os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar'))"` mkdir -p $libs_dir cp $base_class $libs_dir diff --git a/wa/workloads/vellamo/uiauto/build.sh b/wa/workloads/vellamo/uiauto/build.sh index bd7aff44..03b951df 100755 --- a/wa/workloads/vellamo/uiauto/build.sh +++ b/wa/workloads/vellamo/uiauto/build.sh @@ -31,7 +31,7 @@ fi # Copy base class library from wa dist libs_dir=app/libs -base_class=`python -c "import os, wa; print os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar')"` +base_class=`python3 -c "import os, wa; print(os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar'))"` mkdir -p $libs_dir cp $base_class $libs_dir diff --git a/wa/workloads/youtube/uiauto/build.sh b/wa/workloads/youtube/uiauto/build.sh index 7742d31b..fd4d89cf 100755 --- a/wa/workloads/youtube/uiauto/build.sh +++ b/wa/workloads/youtube/uiauto/build.sh @@ -31,7 +31,7 @@ fi # Copy base class library from wa dist libs_dir=app/libs -base_class=`python -c "import os, wa; print os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar')"` +base_class=`python3 -c "import os, wa; print(os.path.join(os.path.dirname(wa.__file__), 'framework', 'uiauto', 'uiauto.aar'))"` mkdir -p $libs_dir cp $base_class $libs_dir