github.com/canonical/ubuntu-image@v0.0.0-20240430122802-2202fe98b290/tests/lib/external/snapd-testing-tools/setup.sh (about) 1 #!/bin/bash 2 3 # This script is used to setup the path and other environment variables needed 4 # to run the tools when the tools aren't used as part of a spread test. 5 # The steps are: 6 # 1. source the file: `. <PATH_TO_PROJECT>/setup.sh` 7 # 2. run any tool: `retry true` 8 9 PROJECT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" 10 11 export PATH=$PATH:$PROJECT_DIR/tools:$PROJECT_DIR/utils:$PROJECT_DIR/remote