Skip to content

Commit fda3844

Browse files
committed
Reapply "tests.json accept alternate non-verbose stderr messages" (negative test)
This reverts commit b0360a7.
1 parent 80e4e9e commit fda3844

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

tests.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1974,7 +1974,10 @@
19741974
"expected": {
19751975
"stdout": "",
19761976
"returncode": 9,
1977-
"stderr": "trurl error: Bad scheme [hello]\ntrurl error: Try trurl -h for help\n"
1977+
"stderr": [
1978+
"trurl error: Bad scheme [hello]\ntrurl error: Try trurl -h for help\n",
1979+
"trurl error: Error [hello]\ntrurl error: Try trurl -h for help\n"
1980+
]
19781981
}
19791982
},
19801983
{
@@ -2018,7 +2021,10 @@
20182021
"expected": {
20192022
"stdout": "https://example.org/\ngit://curl.se/\n",
20202023
"returncode": 0,
2021-
"stderr": "trurl note: Bad scheme [foo]\ntrurl note: Bad scheme [hi]\ntrurl note: Bad scheme [hey]\n"
2024+
"stderr": [
2025+
"trurl note: Bad scheme [foo]\ntrurl note: Bad scheme [hi]\ntrurl note: Bad scheme [hey]\n",
2026+
"trurl note: Error [foo]\ntrurl note: Error [hi]\ntrurl note: Error [hey]\n"
2027+
]
20222028
}
20232029
},
20242030
{
@@ -2767,7 +2773,10 @@
27672773
]
27682774
},
27692775
"expected": {
2770-
"stderr": "trurl note: URL decode error, most likely because of rubbish in the input (query)\n",
2776+
"stderr": [
2777+
"trurl note: URL decode error, most likely because of rubbish in the input (query)\n",
2778+
"trurl note: Error (query)\n"
2779+
],
27712780
"returncode": 0,
27722781
"stdout": "\n"
27732782
}

0 commit comments

Comments
 (0)