Stefan Holderbach df1fecd2cb
Fix sandboxing of redirection tests (#11407)
When running `cargo test --workspace` a file `crates/nu-command/a.txt`
remained which we also saw as an accidential additions in some commits.

Searching for `a.txt` narrowed it down that
`redirection_keep_exit_codes` was not sandboxed in a temporary directory
and created this file.

Went through redirection tests and placed them in a `Playground` to get
sandboxing `dirs` for `nu!(cwd:`.
For those tests where redirection fails and no file should be created
now I added a check that no file is created on accident.


- Sandbox `redirection_keep_exit_codes` test
- Sandbox `no_duplicate_redirection` test
- Check that no redirect file is created on error
- Sandbox `redirection_should_have_a_target` test
2023-12-23 20:01:20 +01:00
..
2023-12-03 08:07:15 -06:00
2022-11-22 16:58:11 -08:00
2023-10-05 18:43:58 +02:00
2023-11-16 15:14:45 -06:00
2023-10-24 12:48:05 -05:00
2023-11-03 10:09:33 -05:00
2022-12-22 00:33:26 +02:00
2023-10-19 09:30:34 -05:00
2023-10-10 03:31:15 +13:00
2023-11-17 19:30:53 -06:00
2023-10-13 13:45:36 -05:00
2023-09-16 21:49:10 +02:00
2023-03-15 18:54:55 +13:00
2023-11-17 07:30:15 +08:00
2023-04-28 13:25:44 +02:00
2023-04-28 13:25:44 +02:00
2023-04-28 13:25:44 +02:00
2023-11-16 05:28:54 -06:00
2023-04-28 13:25:44 +02:00
2023-11-25 09:42:20 -06:00
2023-12-19 08:58:45 -06:00
2023-10-30 07:59:48 -05:00