Skip to content

Commit

Permalink
fix filename typo
Browse files Browse the repository at this point in the history
  • Loading branch information
speediedan committed Sep 3, 2024
1 parent 83dfda9 commit ddc33ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/infra_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,10 @@ show_test_results(){
local test_log="$1"
local tmp_raw_log="$2"
if [ -f ${tmp_raw_log} ]; then
cp $tmp_raw_log ./lightning_logs/
raw_filename=$(basename "$tmp_raw_log")
cp "$tmp_raw_log" "./lightning_logs/$raw_filename"
echo -n "##vso[task.uploadfile]"
echo "${PWD}/lightning_logs/$tmp_raw_log"
echo "${PWD}/lightning_logs/$raw_filename"
if grep_errors=($(grep --ignore-case --extended-regexp 'error|exception|traceback|failed' ${tmp_raw_log})); then
echo `printf "%0.s-" {1..120} && printf "\n"` | tee -a $test_log
printf "Potential errors detected. Uploading ${tmp_raw_log} and grepping exception/error lines below: \n" | tee -a $test_log
Expand Down

0 comments on commit ddc33ba

Please sign in to comment.