Repository navigation
Commit 3572474
committed
feat(testkit): add ExecOutput::success and Sandbox::sh
Give `ExecOutput` the same `success()` check that `CliOutput` has, and
record the command so the failure message names it. Add `Sandbox::sh` to
run a shell script with `sh -c`.
Suites hand-write the exit-code check and the `sh -c` wrapper after every
`exec`; these let them drop that boilerplate.
Signed-off-by: Evan Lezar <elezar@nvidia.com>1 parent a2afbcd commit 3572474
1 file changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
| 425 | + | |
| 426 | + | |
425 | 427 | | |
426 | 428 | | |
427 | 429 | | |
428 | 430 | | |
429 | 431 | | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
430 | 446 | | |
431 | 447 | | |
432 | 448 | | |
| |||
587 | 603 | | |
588 | 604 | | |
589 | 605 | | |
| 606 | + | |
590 | 607 | | |
591 | 608 | | |
592 | 609 | | |
593 | 610 | | |
594 | 611 | | |
595 | 612 | | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
596 | 618 | | |
597 | 619 | | |
598 | 620 | | |
| |||
0 commit comments