Capture previous command exit code in integration tests cleanup (#2503)

* show previous response code

* log previous response code of shell script command
This commit is contained in:
Shubham Bansal
2022-08-04 10:16:05 +05:30
committed by GitHub
parent 3c8edab514
commit 904413db6d
45 changed files with 45 additions and 0 deletions
+1
View File
@@ -14,6 +14,7 @@ code_url=https://raw.githubusercontent.com/fission/examples/master/nodejs/hello.
base64val=$(wget -O- ${code_url} | base64)
cleanup() {
echo "previous response" $?
log "Cleaning up..."
clean_resource_by_id $TEST_ID
}