Ed Santiago
2d9159821a
e2e: redefine ExitWithError() to require exit code
...
...and an optional error-message string, to be checked
against stderr.
This is a starting point and baby-steps progress toward #18188 .
There are 249 ExitWithError() checks in test/e2e. It will take
weeks to fix them all. This commit enables new functionality:
Expect(ExitWithError(125, "expected substring"))
...while also allowing the current empty-args form. Once
all 249 empty-args uses are modernized, the matcher code
will be cleaned up.
I expect it will take several months of light effort to get
all e2e tests transitioned to the new form. I am choosing to
do so in pieces, for (relative) ease of review. This PR:
1) makes the initial changes described above; and
2) updates a small subset of e2e _test.go files such that:
a) ExitWithError() is given an exit code and error string; and
b) Exit(Nonzero) is changed to ExitWithError(Nonzero, "string")
(when possible)
Signed-off-by: Ed Santiago <santiago@redhat.com >
2024-04-10 06:35:52 -06:00
..
2023-11-03 20:39:02 +05:30
2023-02-20 14:51:04 +01:00
2023-04-11 09:15:05 -04:00
2024-02-08 13:03:33 +02:00
2023-01-26 22:20:15 +09:00
2024-02-27 04:30:26 -07:00
2024-04-10 06:35:52 -06:00
2024-02-08 09:35:39 -05:00
2024-04-10 06:35:52 -06:00
2024-04-10 06:35:52 -06:00
2024-02-08 09:35:39 -05:00
2024-04-10 06:35:52 -06:00
2024-03-04 11:25:22 +01:00
2024-02-09 05:26:07 -07:00
2024-02-09 05:26:07 -07:00
2024-02-09 05:26:07 -07:00
2024-02-09 05:26:07 -07:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-14 07:31:43 -08:00
2024-04-10 06:35:52 -06:00
2024-04-10 06:35:52 -06:00
2024-04-10 06:35:52 -06:00
2024-02-08 09:35:39 -05:00
2024-04-10 06:35:52 -06:00
2024-02-08 09:35:39 -05:00
2024-02-22 12:10:57 +01:00
2024-04-10 06:35:52 -06:00
2024-02-08 09:35:39 -05:00
2024-04-10 06:35:52 -06:00
2024-04-10 06:35:52 -06:00
2024-04-10 06:35:52 -06:00
2024-04-10 06:35:52 -06:00
2024-04-10 06:35:52 -06:00
2024-04-10 06:35:52 -06:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-09 05:26:07 -07:00
2024-02-08 09:35:39 -05:00
2024-04-09 05:25:20 -06:00
2024-02-08 09:35:39 -05:00
2024-02-28 19:45:03 +01:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-03-05 12:15:22 -07:00
2024-02-08 09:35:39 -05:00
2024-02-15 09:35:55 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-28 16:33:26 +01:00
2024-02-28 16:33:26 +01:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-03-27 21:58:45 +00:00
2024-02-08 09:35:39 -05:00
2024-02-28 19:45:03 +01:00
2024-02-08 09:35:39 -05:00
2024-02-15 09:35:55 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-27 04:30:26 -07:00
2024-02-15 09:35:55 -05:00
2024-02-08 09:35:39 -05:00
2024-02-27 04:30:26 -07:00
2024-02-27 04:30:26 -07:00
2024-02-08 19:54:38 +00:00
2024-02-08 09:35:39 -05:00
2024-02-15 09:35:55 -05:00
2024-02-14 18:27:26 -07:00
2024-02-09 05:26:07 -07:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-15 09:35:55 -05:00
2024-02-08 09:35:39 -05:00
2024-03-28 08:35:29 -06:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-12 09:13:39 -05:00
2024-02-29 18:42:01 +00:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-27 04:30:26 -07:00
2024-02-08 09:35:39 -05:00
2024-02-12 23:04:24 +01:00
2024-04-09 05:25:20 -06:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-27 04:30:26 -07:00
2024-02-20 09:41:56 -07:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-03-01 10:51:58 -06:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-03-28 08:35:29 -06:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-29 12:16:51 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-15 09:35:55 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00