[Feature]Execute Amber test in a folder in /tmp
Abierto
enhancement
tests
- Lenguaje dominante
- Rust
- Estrellas
- 5.2k
- Forks
- 145
- Merge medio
- 5 d 3 h
- PR fusionados (30 d)
- 7
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.