Commit 4c6f38d
authored
tests: Improve diagnostics and robustness of test shell scripts (#81)
Motivation
----------
Tests scripts are used by GitHub Actions and when running tests locally.
They should have consistent structures, clean up after themselves and
print useful messages so that failures can be diagnosed.
Modifications
-------------
* Update all test scripts to use the same structure and cleanup options
as `run-integration-tests.sh`
* Add better diagnostic messages
Result
------
Test failures will be easier to diagnose
Test Plan
---------
Existing tests continue to pass.1 parent 7caaff7 commit 4c6f38d
File tree
2 files changed
+77
-13
lines changed- scripts
2 files changed
+77
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
2 | 15 | | |
3 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
4 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
5 | 31 | | |
6 | 32 | | |
7 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
8 | 41 | | |
| 42 | + | |
9 | 43 | | |
10 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
11 | 47 | | |
12 | | - | |
13 | | - | |
14 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
15 | 55 | | |
| 56 | + | |
16 | 57 | | |
| 58 | + | |
17 | 59 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 60 | + | |
| 61 | + | |
22 | 62 | | |
23 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
2 | 15 | | |
3 | 16 | | |
4 | 17 | | |
5 | | - | |
| 18 | + | |
6 | 19 | | |
7 | 20 | | |
8 | 21 | | |
| |||
16 | 29 | | |
17 | 30 | | |
18 | 31 | | |
| 32 | + | |
| 33 | + | |
19 | 34 | | |
20 | 35 | | |
21 | 36 | | |
22 | | - | |
| 37 | + | |
23 | 38 | | |
24 | 39 | | |
| 40 | + | |
25 | 41 | | |
26 | 42 | | |
27 | 43 | | |
28 | 44 | | |
29 | 45 | | |
30 | 46 | | |
31 | 47 | | |
| 48 | + | |
32 | 49 | | |
33 | 50 | | |
34 | 51 | | |
35 | 52 | | |
36 | 53 | | |
37 | | - | |
| 54 | + | |
38 | 55 | | |
0 commit comments