-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-- Fixed some linting issues on the "--" argument fix of the wasmer command - Fixed the unit tests for dash and bash subprocesses - Fixed the order of the flushing of files so that processes are notified of exit only after the open file handles are flushed - Added a step that explictily flushes the stdout and stderr on cleanup of an exited process
- Loading branch information
1 parent
0537a7c
commit 8312c2e
Showing
10 changed files
with
229 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
tests/integration/cli/tests/snapshots/snapshot__snapshot_bash_bash.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
source: tests/integration/cli/tests/snapshot.rs | ||
assertion_line: 594 | ||
expression: snapshot | ||
--- | ||
{ | ||
"spec": { | ||
"name": "snapshot::test_snapshot_bash_bash", | ||
"use_packages": [ | ||
"sharrattj/bash" | ||
], | ||
"cli_args": [], | ||
"stdin": [ | ||
47, | ||
98, | ||
105, | ||
110, | ||
47, | ||
98, | ||
97, | ||
115, | ||
104, | ||
10, | ||
101, | ||
99, | ||
104, | ||
111, | ||
32, | ||
104, | ||
105, | ||
10, | ||
101, | ||
120, | ||
105, | ||
116, | ||
10, | ||
101, | ||
99, | ||
104, | ||
111, | ||
32, | ||
104, | ||
105, | ||
50, | ||
10 | ||
], | ||
"debug_output": false, | ||
"enable_threads": true | ||
}, | ||
"result": { | ||
"Success": { | ||
"stdout": "hi\nhi2\n", | ||
"stderr": "test.wasm-5.1# bash-5.1# bash-5.1# exit\ntest.wasm-5.1# test.wasm-5.1# exit\n", | ||
"exit_code": 0 | ||
} | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
tests/integration/cli/tests/snapshots/snapshot__snapshot_bash_dash.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
source: tests/integration/cli/tests/snapshot.rs | ||
assertion_line: 622 | ||
expression: snapshot | ||
--- | ||
{ | ||
"spec": { | ||
"name": "snapshot::test_snapshot_bash_dash", | ||
"use_packages": [ | ||
"sharrattj/dash" | ||
], | ||
"cli_args": [], | ||
"stdin": [ | ||
47, | ||
98, | ||
105, | ||
110, | ||
47, | ||
100, | ||
97, | ||
115, | ||
104, | ||
10, | ||
101, | ||
99, | ||
104, | ||
111, | ||
32, | ||
104, | ||
105, | ||
10, | ||
101, | ||
120, | ||
105, | ||
116, | ||
10, | ||
101, | ||
120, | ||
105, | ||
116, | ||
10 | ||
], | ||
"debug_output": false, | ||
"enable_threads": true | ||
}, | ||
"result": { | ||
"Success": { | ||
"stdout": "hi\n", | ||
"stderr": "test.wasm-5.1# # # test.wasm-5.1# exit\n", | ||
"exit_code": 78 | ||
} | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_bash.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
source: tests/integration/cli/tests/snapshot.rs | ||
assertion_line: 561 | ||
expression: snapshot | ||
--- | ||
{ | ||
"spec": { | ||
"name": "snapshot::test_snapshot_dash_bash", | ||
"use_packages": [ | ||
"sharrattj/bash" | ||
], | ||
"cli_args": [], | ||
"stdin": [ | ||
47, | ||
98, | ||
105, | ||
110, | ||
47, | ||
98, | ||
97, | ||
115, | ||
104, | ||
10, | ||
101, | ||
99, | ||
104, | ||
111, | ||
32, | ||
104, | ||
105, | ||
10, | ||
101, | ||
120, | ||
105, | ||
116, | ||
10, | ||
101, | ||
120, | ||
105, | ||
116, | ||
10 | ||
], | ||
"debug_output": false, | ||
"enable_threads": true | ||
}, | ||
"result": { | ||
"Success": { | ||
"stdout": "hi\n", | ||
"stderr": "# bash-5.1# exit\n# # ", | ||
"exit_code": 78 | ||
} | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
tests/integration/cli/tests/snapshots/snapshot__snapshot_dash_dash.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
source: tests/integration/cli/tests/snapshot.rs | ||
assertion_line: 551 | ||
expression: snapshot | ||
--- | ||
{ | ||
"spec": { | ||
"name": "snapshot::test_snapshot_dash_dash", | ||
"use_packages": [ | ||
"sharrattj/dash" | ||
], | ||
"cli_args": [], | ||
"stdin": [ | ||
47, | ||
98, | ||
105, | ||
110, | ||
47, | ||
100, | ||
97, | ||
115, | ||
104, | ||
10, | ||
101, | ||
99, | ||
104, | ||
111, | ||
32, | ||
104, | ||
105, | ||
10, | ||
101, | ||
120, | ||
105, | ||
116, | ||
10, | ||
101, | ||
120, | ||
105, | ||
116, | ||
10 | ||
], | ||
"debug_output": false, | ||
"enable_threads": true | ||
}, | ||
"result": { | ||
"Success": { | ||
"stdout": "hi\n", | ||
"stderr": "# # \n# # ", | ||
"exit_code": 78 | ||
} | ||
} | ||
} |
Binary file not shown.