Adding unit test for ephemeral feature flag

This was something that was missing in #707.
Adding a new test to make sure the ephemeral feature flag from upstream
is set up correctly by the script.
This commit is contained in:
Sebastien Le Digabel
2021-09-13 10:58:15 +01:00
committed by Yusuke Kuoka
parent b679a54196
commit bf35c51440
7 changed files with 151 additions and 1 deletions

View File

@@ -55,9 +55,15 @@ if [ ${count} != "1" ]; then
error "The configuration step was not run exactly once"
exit 1
fi
success "The configuration ran ${count} time(s)"
log "Testing if the configuration included the --ephemeral flag"
if grep -q -- '--ephemeral' ${RUNNER_HOME}/runner_config; then
error "==============================================="
error "The configuration should not include the --ephemeral flag"
exit 1
fi
log "Testing if runsvc ran"
if [ ! -f "${RUNNER_HOME}/runsvc_ran" ]; then
error "=============================="