mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
curl_print in TEST_CONTEXT folder
This commit is contained in:
parent
bf3ce384e5
commit
ef2c602d4a
1 changed files with 3 additions and 3 deletions
|
@ -196,7 +196,7 @@ _VALIDATE_THAT_APP_CAN_BE_ACCESSED () {
|
||||||
--write-out "%{http_code};%{url_effective}\n" \
|
--write-out "%{http_code};%{url_effective}\n" \
|
||||||
--output "$curl_output" \
|
--output "$curl_output" \
|
||||||
$check_domain$curl_check_path \
|
$check_domain$curl_check_path \
|
||||||
> "./curl_print"
|
> "$TEST_CONTEXT/curl_print"
|
||||||
|
|
||||||
# Analyze the result of curl command
|
# Analyze the result of curl command
|
||||||
if [ $? -ne 0 ]
|
if [ $? -ne 0 ]
|
||||||
|
@ -205,7 +205,7 @@ _VALIDATE_THAT_APP_CAN_BE_ACCESSED () {
|
||||||
curl_error=1
|
curl_error=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
http_code=$(cat "./curl_print" | cut -d ';' -f1)
|
http_code=$(cat "$TEST_CONTEXT/curl_print" | cut -d ';' -f1)
|
||||||
|
|
||||||
log_debug "HTTP code: $http_code"
|
log_debug "HTTP code: $http_code"
|
||||||
|
|
||||||
|
@ -245,7 +245,7 @@ _VALIDATE_THAT_APP_CAN_BE_ACCESSED () {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "Test URL: $check_domain$curl_check_path
|
echo -e "Test URL: $check_domain$curl_check_path
|
||||||
Real URL: $(cat "./curl_print" | cut --delimiter=';' --fields=2)
|
Real URL: $(cat "$TEST_CONTEXT/curl_print" | cut --delimiter=';' --fields=2)
|
||||||
HTTP code: $http_code
|
HTTP code: $http_code
|
||||||
Page title: $page_title
|
Page title: $page_title
|
||||||
Page extract:\n$page_extract" > $TEST_CONTEXT/curl_result
|
Page extract:\n$page_extract" > $TEST_CONTEXT/curl_result
|
||||||
|
|
Loading…
Add table
Reference in a new issue