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:
@@ -14,6 +14,7 @@ ROOT=$(dirname $0)/../../..
|
||||
cd $ROOT/test/tests/test_kubectl
|
||||
|
||||
cleanup() {
|
||||
echo "previous response" $?
|
||||
log "Cleaning up..."
|
||||
kubectl delete -f spec-yaml -R || true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user