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:
@@ -15,6 +15,7 @@ env=python-$TEST_ID
|
||||
fn=spec-$TEST_ID
|
||||
|
||||
cleanup() {
|
||||
echo "previous response" $?
|
||||
log "Cleaning up..."
|
||||
clean_resource_by_id $TEST_ID
|
||||
rm -rf $tmp_dir
|
||||
|
||||
@@ -5,6 +5,7 @@ source $(dirname $0)/../../../utils.sh
|
||||
ROOT=` realpath $(dirname $0)/../../../../`
|
||||
|
||||
cleanup() {
|
||||
echo "previous response" $?
|
||||
log "Cleaning up..."
|
||||
fission spec destroy
|
||||
rm -rf func
|
||||
|
||||
@@ -9,6 +9,7 @@ env_n=nodend
|
||||
fn_nd=nodehellond
|
||||
|
||||
cleanup() {
|
||||
echo "previous response" $?
|
||||
log "Cleaning up..."
|
||||
fission spec destroy || true
|
||||
popd
|
||||
|
||||
@@ -15,6 +15,7 @@ env=python-$TEST_ID
|
||||
fn=spec-$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