From eaa2b63f4cb590ad71b67ac55f6516083c306037 Mon Sep 17 00:00:00 2001 From: Per Goncalves da Silva Date: Wed, 6 Mar 2019 16:30:23 +0100 Subject: [PATCH] Updates qemu runtime_functions.py to install pip requirements from qemu directory --- ci/docker/qemu/runtime_functions.py | 4 ++-- ci/docker/qemu/vmcontrol.py | 1 + ci/qemu/test_requirements.txt | 4 ++++ 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 ci/qemu/test_requirements.txt diff --git a/ci/docker/qemu/runtime_functions.py b/ci/docker/qemu/runtime_functions.py index 8b8e5acb503c..9c137f6c32f2 100755 --- a/ci/docker/qemu/runtime_functions.py +++ b/ci/docker/qemu/runtime_functions.py @@ -77,8 +77,8 @@ def run_ut_python3_qemu_internal(): logging.info("=== NOW Running inside QEMU ===") logging.info("PIP Installing %s", pkg) check_call(['sudo', 'pip3', 'install', pkg]) - logging.info("PIP Installing mxnet/tests/requirements.txt") - check_call(['sudo', 'pip3', 'install', '-r', 'mxnet/tests/requirements.txt']) + logging.info("PIP Installing mxnet/test_requirements.txt") + check_call(['sudo', 'pip3', 'install', '-r', 'mxnet/test_requirements.txt']) logging.info("Running tests in mxnet/tests/python/unittest/") check_call(['nosetests', '--with-timer', '--with-xunit', '--xunit-file', 'nosetests_unittest.xml', '--verbose', 'mxnet/tests/python/unittest/test_engine.py']) # Example to run a single unit test: diff --git a/ci/docker/qemu/vmcontrol.py b/ci/docker/qemu/vmcontrol.py index d80e22b1db85..31ef4d2550c3 100644 --- a/ci/docker/qemu/vmcontrol.py +++ b/ci/docker/qemu/vmcontrol.py @@ -229,6 +229,7 @@ def qemu_provision(ssh_port=QEMU_SSH_PORT): qemu_rsync(ssh_port, '/work/runtime_functions.py','') qemu_rsync(ssh_port, '/work/vmcontrol.py','') qemu_rsync(ssh_port, 'mxnet/tests', 'mxnet') + qemu_rsync(ssh_port, 'mxnet/ci/qemu/test_requirements.txt', 'mxnet/test_requirements.txt') logging.info("Provisioning completed successfully.") diff --git a/ci/qemu/test_requirements.txt b/ci/qemu/test_requirements.txt new file mode 100644 index 000000000000..733f21c0d468 --- /dev/null +++ b/ci/qemu/test_requirements.txt @@ -0,0 +1,4 @@ +mock +nose +nose-timer +ipython \ No newline at end of file