Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit 841e5ee

Browse files
authored
Merge pull request #55 from startupturbo/fix_cleanup
fix cleanup steps
2 parents bc6848e + 7793bb0 commit 841e5ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nancy_run.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,14 +539,14 @@ function destroyDockerMachine() {
539539

540540
function cleanupAndExit {
541541
echo "Remove temp files..." # if exists
542+
docker $dockerConfig exec -i ${containerHash} sh -c "sudo rm -rf $MACHINE_HOME"
542543
rm -f "$TMP_PATH/after_db_init_code_tmp.sql"
543544
rm -f "$TMP_PATH/workload_custom_sql_tmp.sql"
544545
rm -f "$TMP_PATH/target_ddl_do_tmp.sql"
545546
rm -f "$TMP_PATH/target_ddl_undo_tmp.sql"
546547
rm -f "$TMP_PATH/target_config_tmp.conf"
547548
rm -f "$TMP_PATH/pg_config_tmp.conf"
548549
if [ "$RUN_ON" = "localhost" ]; then
549-
rm -rf "$TMP_PATH/nancy_${containerHash}"
550550
echo "Remove docker container"
551551
docker container rm -f $containerHash
552552
elif [ "$RUN_ON" = "aws" ]; then
@@ -746,6 +746,7 @@ docker_exec bash -c "/root/pgbadger/pgbadger \
746746
-j $(cat /proc/cpuinfo | grep processor | wc -l) \
747747
--prefix '%t [%p]: [%l-1] db=%d,user=%u (%a,%h)' /var/log/postgresql/* -f stderr \
748748
-o $MACHINE_HOME/$ARTIFACTS_FILENAME.json"
749+
#2> >(grep -v "install the Text::CSV_XS" >&2)
749750

750751
echo "Save JSON log..."
751752
if [[ $ARTIFACTS_DESTINATION =~ "s3://" ]]; then

0 commit comments

Comments
 (0)