Skip to content

Commit

Permalink
fix: use correct file path
Browse files Browse the repository at this point in the history
  • Loading branch information
HansRobo committed Feb 20, 2025
1 parent cefe388 commit aff3cb4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/workflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ exit_status=0

while IFS= read -r line
do
ros2 launch scenario_test_runner scenario_test_runner.launch.py scenario:="$line" output_directory:="/tmp/scenario_workflow/$(basename "$file_path" | sed 's/\.[^.]*$//')/$(basename "$line" | sed 's/\.[^.]*$//')" "$@"
ros2 run scenario_test_runner result_checker.py /tmp/scenario_test_runner/result.junit.xml
output_directory="/tmp/scenario_workflow/$(basename "$file_path" | sed 's/\.[^.]*$//')/$(basename "$line" | sed 's/\.[^.]*$//')"
ros2 launch scenario_test_runner scenario_test_runner.launch.py scenario:="$line" output_directory:=$output_directory "$@"
ros2 run scenario_test_runner result_checker.py $output_directory/scenario_test_runner/result.junit.xml
command_exit_status=$?
if [ $command_exit_status -ne 0 ]; then
echo "Error: caught non-zero exit status(code: $command_exit_status)"
Expand Down

0 comments on commit aff3cb4

Please sign in to comment.