Skip to content

Commit

Permalink
Merge pull request #128 from rhusar/testsuite-log-suffix
Browse files Browse the repository at this point in the history
Fix non-standard log file extension to *.log files.
  • Loading branch information
jajik authored Aug 10, 2023
2 parents 5c2933e + fd5c15c commit 7767403
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
.vscode/

# Native built files
native/*/*.log
native/*/*.slo
native/*/*.so
native/*/*.lo
Expand All @@ -34,8 +33,8 @@ target/
# war files (usually in tests)
**/*.war

# test logs
**/*.logs
# Log files
**/*.log

# test nohup files
**/nohup.out
4 changes: 2 additions & 2 deletions test/includes/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ run_test() {
printf "Running %-42s ..." $1
fi
if [ $DEBUG ]; then
sh $1 > "logs/${2:-$1}.logs" 2>&1
sh $1 > "logs/${2:-$1}.log" 2>&1
else
sh $1 > /dev/null 2>&1
fi
Expand All @@ -24,7 +24,7 @@ run_test() {
fi
# preserve httpd's logs too if DEBUG
if [ $DEBUG ]; then
docker logs $(docker ps -a | grep $HTTPD_IMG | cut -f 1 -d' ') > "logs/${2:-$1}-httpd.logs" 2>&1
docker logs $(docker ps -a | grep $HTTPD_IMG | cut -f 1 -d' ') > "logs/${2:-$1}-httpd.log" 2>&1
fi
# Clean all after run
httpd_shutdown > /dev/null 2>&1
Expand Down

0 comments on commit 7767403

Please sign in to comment.