Skip to content

Commit

Permalink
Update regenerate.sh (All-Hands-AI#2832)
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartManoj authored Jul 7, 2024
1 parent ba0f57c commit c6aa507
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/integration/regenerate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]}
Expand All @@ -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
Expand Down

0 comments on commit c6aa507

Please sign in to comment.