Fix runner startup.sh tests

- `should_work_use_disable_once_switch` was failing since the support for --once has been removed a while ago. Removed the test.
- Added `cd` before running `startup.sh` for access to the logger.sh library from within the script
- Included the runner directory into `$PATH` for access to `update-status` from within the script
This commit is contained in:
Yusuke Kuoka
2023-05-31 01:30:37 +00:00
parent 8a8f28f12d
commit fb1a7cce8b
4 changed files with 12 additions and 93 deletions

View File

@@ -15,7 +15,7 @@ startup_log() {
}
log "Setting up test area"
export RUNNER_HOME=testarea
export RUNNER_HOME=$(pwd)/testarea
mkdir -p ${RUNNER_HOME}
log "Setting up the test config"
@@ -49,7 +49,9 @@ log ""
# Run the runner startup script which as a final step runs this
# unit tests run.sh as it was symlinked
../../../runner/startup.sh 2> >(startup_log)
cd ../../../runner
export PATH=${PATH}:$(pwd)
./startup.sh 2> >(startup_log)
if [ "$?" != "2" ]; then
error "========================================="