[Feature]Execute Amber test in a folder in /tmp
Aperta
enhancement
tests
- Lingua principale
- Rust
- Stelle
- 5.2k
- Fork
- 145
- Merge medio
- 5g 3h
- PR unite (30g)
- 7
Descrizione
In this way they are sandboxed (I execute them on my machine I dont want to have issues).
Following @CymDeveloppement proposal we can do something like:
```
import * from "std"
main {
let tmpdir = unsafe $mktemp -d /tmp/amber-XXXX$
unsafe $cd {tmpdir}$
unsafe $touch test.txt$
if file_exist("./test.txt") {
echo "Hello, Amber!"
} else {
echo "Not Found"
}
unsafe $rm -fr {tmpdir}$
}
```
An idea can be on Rust side create that folder, execute the script inside that and remove it when finished. So we don't need to modify any test.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.