Skip to content

Commit

Permalink
Merge pull request #373 from LeaYeh/ci-tester-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
LeaYeh authored Aug 12, 2024
2 parents ddda21d + 1c55474 commit 7816c60
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/scripts/print_test_case.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ output_file_path="${TESTER_OUTPUT_DIR}/${file_dirname}/${file_basename}"
print_output()
{
local output_type=$1
local file_minishell="${output_file_path}/${output_type}_minishell_${test_number}"
local file_bash="${output_file_path}/${output_type}_bash_${test_number}"
local file_minishell="${output_file_path}/${test_number}_${output_type}_minishell"
local file_bash="${output_file_path}/${test_number}_${output_type}_bash"

# Print diff of output between bash and minishell
if [[ -f $file_minishell && -f $file_bash ]]; then
Expand Down Expand Up @@ -42,7 +42,7 @@ print_output()

print_valgrind_output()
{
local file_valgrind="${output_file_path}/valgrind_out_${test_number}"
local file_valgrind="${output_file_path}/${test_number}_valgrind_out"

# Print valgrind output
if [[ -f $file_valgrind ]]; then
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/regression_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: 🌱 Test source branch of pull request
run: |
make re CC=clang-12
${{ env.TESTER_DIR }}/tester.sh ${{ inputs.test_mode }} > ${{ env.HOME }}/source_test_result.txt
${{ env.TESTER_DIR }}/tester.sh --no-update ${{ inputs.test_mode }} > ${{ env.HOME }}/source_test_result.txt
env:
GH_BRANCH: SOURCE_FAILED_COUNT

Expand All @@ -66,7 +66,7 @@ jobs:
- name: 🎯 Test target branch of pull request
run: |
make re CC=clang-12
${{ env.TESTER_DIR }}/tester.sh ${{ inputs.test_mode }} > ${{ env.HOME }}/target_test_result.txt
${{ env.TESTER_DIR }}/tester.sh --no-update ${{ inputs.test_mode }} > ${{ env.HOME }}/target_test_result.txt
env:
GH_BRANCH: TARGET_FAILED_COUNT

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
- name: 🔍 Check memory leaks
run: |
make re CC=clang-12
${{ env.TESTER_DIR }}/tester.sh va > ${{ env.HOME }}/leak_result.txt
${{ env.TESTER_DIR }}/tester.sh --no-update va > ${{ env.HOME }}/leak_result.txt
env:
GH_BRANCH: IGNORE
continue-on-error: true
Expand Down

0 comments on commit 7816c60

Please sign in to comment.