Skip to content

Commit 209b5fc

Browse files
antinucleonBing Xu
authored andcommitted
[Python3] Update test
1 parent 9d4a9d7 commit 209b5fc

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

tests/python/unittest/test_module_load.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def save_object(names):
8282
fo.write(runtime_py)
8383

8484
subprocess.check_call(
85-
"python %s %s %s" % (path_runtime_py, path_dso, dtype),
85+
"python3 %s %s %s" % (path_runtime_py, path_dso, dtype),
8686
shell=True)
8787

8888

tests/scripts/task_java_unittest.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ CURR_DIR=$(cd `dirname $0`; pwd)
2626
SCRIPT_DIR=$CURR_DIR/../../jvm/core/src/test/scripts
2727
TEMP_DIR=$(mktemp -d)
2828

29-
python $SCRIPT_DIR/test_add_cpu.py $TEMP_DIR
30-
python $SCRIPT_DIR/test_add_gpu.py $TEMP_DIR
31-
python $SCRIPT_DIR/test_graph_runtime.py $TEMP_DIR
29+
python3 $SCRIPT_DIR/test_add_cpu.py $TEMP_DIR
30+
python3 $SCRIPT_DIR/test_add_gpu.py $TEMP_DIR
31+
python3 $SCRIPT_DIR/test_graph_runtime.py $TEMP_DIR
3232

3333
# start rpc proxy server
3434
PORT=$(( ( RANDOM % 1000 ) + 9000 ))
35-
python $SCRIPT_DIR/test_rpc_proxy_server.py $PORT 30 &
35+
python3 $SCRIPT_DIR/test_rpc_proxy_server.py $PORT 30 &
3636

3737
make jvmpkg
3838
make jvmpkg JVM_TEST_ARGS="-DskipTests=false \

tests/scripts/task_python_docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ mv jvm/core/target/site/apidocs docs/_build/html/javadoc
4040
rm -rf python/tvm/*.pyc python/tvm/*/*.pyc python/tvm/*/*/*.pyc
4141

4242
cd docs
43-
PYTHONPATH=`pwd`/../python3 make html
43+
PYTHONPATH=`pwd`/../python make html
4444
cd _build/html
4545
tar czf docs.tgz *
4646
mv docs.tgz ../../../

tests/scripts/task_python_integration.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ rm -rf lib
3333
make
3434
cd ../..
3535

36+
python3 -m nose -v apps/extension/tests
37+
3638
TVM_FFI=ctypes python3 -m nose -v tests/python/integration
3739
TVM_FFI=ctypes python3 -m nose -v tests/python/contrib
3840

tests/scripts/task_web_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
set -e
2020
set -u
2121

22-
export PYTHONPATH=python3
22+
export PYTHONPATH=python
2323

2424
cp /emsdk-portable/.emscripten ~/.emscripten
2525
source /emsdk-portable/emsdk_env.sh

0 commit comments

Comments
 (0)