Skip to content

Commit

Permalink
Merge pull request modcluster#133 from jajik/issue-129
Browse files Browse the repository at this point in the history
test: Add httpd's access_log among test outputs
  • Loading branch information
rhusar authored Aug 10, 2023
2 parents 9860c4b + 11b0ff0 commit f43f088
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/includes/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ 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.log" 2>&1
local httpd_cont=$(docker ps -a | grep $HTTPD_IMG | cut -f 1 -d' ')
docker logs $httpd_cont > "logs/${2:-$1}-httpd.log" 2>&1
docker cp ${httpd_cont}:/usr/local/apache2/logs/access_log "logs/${2:-$1}-httpd_access.log" > /dev/null
fi
# Clean all after run
httpd_shutdown > /dev/null 2>&1
Expand Down

0 comments on commit f43f088

Please sign in to comment.