Skip to content

Commit

Permalink
chore: enable log in terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrery committed Sep 28, 2023
1 parent 4ee261d commit 34dff33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/make_utils/run_use_case_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ do
# The following will pipe the stderr to the regex so that it
# ends up in the log file.
# The timing shows in the terminal
USE_CASE_DIR=$USE_CASE_DIR make 3>&2 2>&1 1>&3- | perl -pe 's/\e([^\[\]]|\[.*?[a-zA-Z]|\].*?\a)//g' > "/tmp/log_${EXAMPLE_NAME}"
USE_CASE_DIR=$USE_CASE_DIR make 3>&2 2>&1 1>&3- | perl -pe 's/\e([^\[\]]|\[.*?[a-zA-Z]|\].*?\a)//g'

# Neet to check the result of execution of the make command (ignore the results
# of the other commands in the pipe)
hresult="${PIPESTATUS[0]}"
if [ "$hresult" -ne 0 ]; then
echo "Error while running example ${EXAMPLE_NAME} see /tmp/log_${EXAMPLE_NAME}"
echo "Error while running example ${EXAMPLE_NAME}"
fi
set -e

Expand Down

0 comments on commit 34dff33

Please sign in to comment.