Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrdadh committed Jul 6, 2022
1 parent cbc82ee commit 4b9de25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions apps/microtvm/reference-vm/base-box-tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def do_build_release_test_vm(
return True


def do_run_release_test(release_test_dir, platform, provider_name, test_config, test_device_serial):
def do_run_release_test(release_test_dir, provider_name, test_config, test_device_serial):
with open(
os.path.join(release_test_dir, ".vagrant", "machines", "default", provider_name, "id")
) as f:
Expand All @@ -413,7 +413,7 @@ def _quote_cmd(cmd):
+ " && "
+ _quote_cmd(
[
f"apps/microtvm/reference-vm/{platform}/base-box/base_box_test.sh",
f"apps/microtvm/reference-vm/base-box/base_box_test.sh",
test_config["microtvm_board"],
]
)
Expand Down Expand Up @@ -458,7 +458,6 @@ def test_command(args):
)
do_run_release_test(
release_test_dir,
args.platform,
provider_name,
microtvm_test_config,
args.test_device_serial,
Expand Down
4 changes: 2 additions & 2 deletions apps/microtvm/reference-vm/provision_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ cd "${TVM_HOME}"
apps/microtvm/reference-vm/rebuild_tvm.sh

# Build poetry
cd apps/microtvm/reference-vm/zephyr
cd apps/microtvm/reference-vm

poetry env use 3.7

Expand All @@ -38,7 +38,7 @@ poetry install
poetry run pip3 install -r ${ZEPHYR_BASE}/scripts/requirements.txt

echo "export TVM_LIBRARY_PATH=\"$TVM_HOME\"/build-microtvm}" >>~/.profile
echo "VENV_PATH=\$((cd \"$TVM_HOME\"/apps/microtvm/reference-vm/zephyr && poetry env list --full-path) | sed -E 's/^(.*)[[:space:]]\(Activated\)\$/\1/g')" >>~/.profile
echo "VENV_PATH=\$((cd \"$TVM_HOME\"/apps/microtvm/reference-vm && poetry env list --full-path) | sed -E 's/^(.*)[[:space:]]\(Activated\)\$/\1/g')" >>~/.profile
echo "source \$VENV_PATH/bin/activate" >>~/.profile
echo "export PATH=\"\${PATH}:\${HOME}/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin\"" >>~/.profile
echo "export CMSIS_PATH=\"\${HOME}/cmsis\"" >>~/.profile

0 comments on commit 4b9de25

Please sign in to comment.