Skip to content

Commit 9345ab5

Browse files
Remove checkbox dir after install on agent (#96)
Fix installing with sudo caused problem with leftover files on agent. Consecutive job run will fail.
1 parent b7f8938 commit 9345ab5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tools/PC/testflinger_yaml_generator/template/shell_scripts/15_install_checkbox_on_agent

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ CHECKBOX_VERSION=$(_run $CHECKBOX_CLI_CMD --version)
1111
git clone --depth=1 https://github.com/canonical/hwcert-jenkins-tools.git > /dev/null
1212
git clone --filter=tree:0 https://github.com/canonical/checkbox.git > /dev/null
1313
hwcert-jenkins-tools/version-published/checkout_to_version.py ~/checkbox "$CHECKBOX_VERSION"
14-
(cd checkbox/checkbox-ng || return; sudo python3 setup.py install > /dev/null)
14+
pipx install --spec checkbox/checkbox-ng checkbox-ng
15+
sudo rm -rf checkbox

0 commit comments

Comments
 (0)