Skip to content

Commit

Permalink
tests: fix assigning expected output file variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jarelllama authored Jan 30, 2025
1 parent e7493dc commit 23a314d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/test_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ check_output() {
local actual_output_file expected_output_file term_error

while read -r actual_output_file; do
expected_output_file="${expected_output_file//\//_}"
expected_output_file="${actual_output_file//\//_}"

if [[ ! -f "$actual_output_file" ]]; then
error "${actual_output_file} is not found."
Expand Down Expand Up @@ -608,8 +608,8 @@ input() {
# $2: Actual results file path
output() {
local expected_output="$1"
local expected_output_file="${expected_output_file//\//_}"
local actual_output_file="$2"
local expected_output_file="${actual_output_file//\//_}"

printf "%s\n" "$actual_output_file" >> output_files_to_test.txt
sort -u output_files_to_test.txt -o output_files_to_test.txt
Expand Down

0 comments on commit 23a314d

Please sign in to comment.