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:
@@ -18,6 +18,7 @@ old_cfgmap=old-cfgmap-$TEST_ID
|
||||
new_cfgmap=new-cfgmap-$TEST_ID
|
||||
|
||||
cleanup() {
|
||||
echo "previous response" $?
|
||||
log "Cleaning up..."
|
||||
clean_resource_by_id $TEST_ID
|
||||
rm -rf $tmp_dir
|
||||
|
||||
@@ -13,6 +13,7 @@ env_new=python-new-$TEST_ID
|
||||
fn=hellopy-$TEST_ID
|
||||
|
||||
cleanup() {
|
||||
echo "previous response" $?
|
||||
log "Cleaning up..."
|
||||
clean_resource_by_id $TEST_ID
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@ fn=hellopython-$TEST_ID
|
||||
ROOT=$(dirname $0)/../../..
|
||||
|
||||
cleanup() {
|
||||
echo "previous response" $?
|
||||
log "Cleaning up..."
|
||||
clean_resource_by_id $TEST_ID
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ tmp_dir="/tmp/test-$TEST_ID"
|
||||
mkdir -p $tmp_dir
|
||||
|
||||
cleanup() {
|
||||
echo "previous response" $?
|
||||
log "Cleaning up..."
|
||||
clean_resource_by_id $TEST_ID
|
||||
rm -rf $tmp_dir
|
||||
|
||||
@@ -12,6 +12,7 @@ env=python-$TEST_ID
|
||||
fn=hellopython-$TEST_ID
|
||||
|
||||
cleanup() {
|
||||
echo "previous response" $?
|
||||
log "Cleaning up..."
|
||||
clean_resource_by_id $TEST_ID
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@ minmem2=512
|
||||
maxmem2=768
|
||||
|
||||
cleanup() {
|
||||
echo "previous response" $?
|
||||
log "Cleaning up..."
|
||||
clean_resource_by_id $TEST_ID
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ targetMaxScale=6
|
||||
targetCpuPercent=60
|
||||
|
||||
cleanup() {
|
||||
echo "previous response" $?
|
||||
log "Cleaning up..."
|
||||
clean_resource_by_id $TEST_ID
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ old_secret=old-secret-$TEST_ID
|
||||
new_secret=new-secret-$TEST_ID
|
||||
|
||||
cleanup() {
|
||||
echo "previous response" $?
|
||||
log "Cleaning up..."
|
||||
clean_resource_by_id $TEST_ID
|
||||
rm -rf $tmp_dir
|
||||
|
||||
Reference in New Issue
Block a user