From c6aa50779d03e703cefc1dd754ae95f3ee0d8f1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=AE=AE=E0=AE=A9=E0=AF=8B=E0=AE=9C=E0=AF=8D=E0=AE=95?= =?UTF-8?q?=E0=AF=81=E0=AE=AE=E0=AE=BE=E0=AE=B0=E0=AF=8D=20=E0=AE=AA?= =?UTF-8?q?=E0=AE=B4=E0=AE=A9=E0=AE=BF=E0=AE=9A=E0=AF=8D=E0=AE=9A=E0=AE=BE?= =?UTF-8?q?=E0=AE=AE=E0=AE=BF?= Date: Mon, 8 Jul 2024 03:22:03 +0530 Subject: [PATCH] Update regenerate.sh (#2832) --- tests/integration/regenerate.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/integration/regenerate.sh b/tests/integration/regenerate.sh index a640d7c9d715..2d8ddd92047f 100755 --- a/tests/integration/regenerate.sh +++ b/tests/integration/regenerate.sh @@ -158,8 +158,7 @@ regenerate_with_llm() { launch_http_server fi - rm -rf $WORKSPACE_BASE - mkdir -p $WORKSPACE_BASE + rm -rf $WORKSPACE_BASE/* if [ -d "tests/integration/workspace/$test_name" ]; then cp -r tests/integration/workspace/$test_name/* $WORKSPACE_BASE fi @@ -197,7 +196,7 @@ if [ "$num_of_tests" -ne "${#test_names[@]}" ]; then fi rm -rf logs -rm -rf $WORKSPACE_BASE +rm -rf $WORKSPACE_BASE/* for ((i = 0; i < num_of_tests; i++)); do task=${tasks[i]} test_name=${test_names[i]} @@ -216,8 +215,7 @@ for ((i = 0; i < num_of_tests; i++)); do fi echo -e "\n\n\n\n========STEP 1: Running $test_name for $agent========\n\n\n\n" - rm -rf $WORKSPACE_BASE - mkdir $WORKSPACE_BASE + rm -rf $WORKSPACE_BASE/* if [ -d "tests/integration/workspace/$test_name" ]; then cp -r "tests/integration/workspace/$test_name"/* $WORKSPACE_BASE fi