Skip to content

Commit acdb8c2

Browse files
Update gptdriverrunscript.sh
1 parent dfc1f13 commit acdb8c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/gptdriverrunscript.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ readonly TEST_TAGS="${TEST_TAGS:-}"
1313
post_data() {
1414
local url=$1
1515
local body=$2
16-
# ADD -v FLAG HERE for debugging, you can remove it later
16+
# Debugging: Added -v flag and 2>&1 to capture verbose output
1717
if ! response=$(curl -s -f -v -X POST -H "Authorization: Bearer $API_TOKEN" -H "Content-Type: application/json" -d "$body" "$url" 2>&1); then # 2>&1 captures stderr too
1818
echo "Error: Network request failed with error $response" >&2
1919
exit 1
@@ -44,7 +44,7 @@ fi
4444

4545
# Upload build file
4646
echo -n "Uploading build from $buildFilename for $buildPlatform: "
47-
# ADD -v FLAG HERE for debugging, you can remove it later
47+
# Debugging: Added -v flag and 2>&1 to capture verbose output
4848
if ! uploadedBuildResponse=$(curl -s -f -v -X POST \
4949
-H "Authorization: Bearer $API_TOKEN" \
5050
-H "Content-Type: multipart/form-data" \
@@ -82,7 +82,7 @@ fi
8282
echo -n "Waiting for test suite to finish..."
8383
startTime=$(date +%s)
8484
while true; do
85-
# ADD -v FLAG HERE for debugging, you can remove it later
85+
# Debugging: Added -v flag and 2>&1 to capture verbose output
8686
if ! testSuiteData=$(curl -s -f -v "$API_URL/testSuiteRuns/$testSuiteRunId/gh" 2>&1); then # 2>&1 captures stderr too
8787
echo "Error: Failed to retrieve test suite data" >&2
8888
exit 1

0 commit comments

Comments
 (0)