Skip to content

Commit

Permalink
add debug host journal
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasyang2022 committed Oct 16, 2024
1 parent db7ad3c commit 65e305d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/run-functional-tests
Original file line number Diff line number Diff line change
Expand Up @@ -530,10 +530,10 @@ for case_num in $*;do
prepare_coverage_env "${node_arry[@]}"
if [ "$NORMAL_USER_FLAG" -eq 0 ];then
info "Running \"$case_file_in_container\" under 'root'..."
docker_exec ${node_arry[0]} "behave --no-logcapture $case_file_in_container || exit 1" || exit 1
docker_exec ${node_arry[0]} "behave --no-logcapture $case_file_in_container || exit 1" || ( journalctl -b; exit 1 )
else
info "Running \"$case_file_in_container\" under normal user 'alice'..."
docker_exec ${node_arry[0]} "su - alice -c 'sudo behave --no-logcapture $case_file_in_container || exit 1'" || exit 1
docker_exec ${node_arry[0]} "su - alice -c 'sudo behave --no-logcapture $case_file_in_container || exit 1'" || ( journalctl -b; exit 1 )
fi
fetch_coverage_report "${node_arry[@]}"
echo
Expand Down

0 comments on commit 65e305d

Please sign in to comment.