Commit 2f84a18
test: refactor common.ddCommand()
* Remove different paths for Windows and POSIX.
* Remove fixtures file. Simply run the command immediately/directly.
* Since it is never called with more than one value for kilobytes,
eliminate that argument.
* Update/simplify tests that use this function. (They no longer need to
use child_process to run the command.)
* Update documentation.
Backport-PR-URL: #23630
PR-URL: #23411
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: George Adams <george.adams@uk.ibm.com>1 parent d4f0366 commit 2f84a18Copy full SHA for 2f84a18
File tree
Expand file treeCollapse file tree
7 files changed
+29
-72
lines changedOpen diff view settings
Filter options
- test
- common
- fixtures
- parallel
- sequential
Expand file treeCollapse file tree
7 files changed
+29
-72
lines changedOpen diff view settings
Collapse file
+2-3Lines changed: 2 additions & 3 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
52 | 52 | |
53 | 53 | |
54 | 54 | |
55 | | - |
56 | | - |
| 55 | + |
57 | 56 | |
58 | | - |
| 57 | + |
59 | 58 | |
60 | 59 | |
61 | 60 | |
|
Collapse file
+4-8Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
29 | 29 | |
30 | 30 | |
31 | 31 | |
32 | | - |
33 | 32 | |
34 | 33 | |
35 | 34 | |
| ||
174 | 173 | |
175 | 174 | |
176 | 175 | |
177 | | - |
178 | | - |
179 | | - |
180 | | - |
181 | | - |
182 | | - |
183 | | - |
| 176 | + |
| 177 | + |
| 178 | + |
| 179 | + |
184 | 180 | |
185 | 181 | |
186 | 182 | |
|
Collapse file
test/fixtures/create-file.js
Copy file name to clipboardExpand all lines: test/fixtures/create-file.js-29Lines changed: 0 additions & 29 deletions
This file was deleted.
Collapse file
test/parallel/test-fs-error-messages.js
Copy file name to clipboardExpand all lines: test/parallel/test-fs-error-messages.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
31 | 31 | |
32 | 32 | |
33 | 33 | |
34 | | - |
| 34 | + |
35 | 35 | |
36 | 36 | |
37 | 37 | |
|
Collapse file
test/parallel/test-http-chunk-problem.js
Copy file name to clipboardExpand all lines: test/parallel/test-http-chunk-problem.js+20-23Lines changed: 20 additions & 23 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
63 | 63 | |
64 | 64 | |
65 | 65 | |
66 | | - |
| 66 | + |
67 | 67 | |
68 | | - |
69 | | - |
70 | | - |
71 | | - |
| 68 | + |
| 69 | + |
72 | 70 | |
73 | | - |
74 | | - |
| 71 | + |
| 72 | + |
75 | 73 | |
76 | | - |
77 | | - |
78 | | - |
79 | | - |
80 | | - |
81 | | - |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
82 | 78 | |
83 | | - |
84 | | - |
85 | | - |
86 | | - |
87 | | - |
88 | | - |
89 | | - |
| 79 | + |
90 | 80 | |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
91 | 87 | |
92 | 88 | |
93 | | - |
94 | | - |
95 | | - |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
96 | 93 | |
Collapse file
test/parallel/test-pipe-file-to-http.js
Copy file name to clipboardExpand all lines: test/parallel/test-pipe-file-to-http.js+2-7Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
25 | 25 | |
26 | 26 | |
27 | 27 | |
28 | | - |
29 | 28 | |
30 | 29 | |
31 | 30 | |
| ||
57 | 56 | |
58 | 57 | |
59 | 58 | |
60 | | - |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
65 | | - |
| 59 | + |
| 60 | + |
66 | 61 | |
67 | 62 | |
68 | 63 | |
|
Collapse file
test/sequential/test-module-loading.js
Copy file name to clipboardExpand all lines: test/sequential/test-module-loading.js-1Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
251 | 251 | |
252 | 252 | |
253 | 253 | |
254 | | - |
255 | 254 | |
256 | 255 | |
257 | 256 | |
|
0 commit comments