oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1package release
2
3import (
4 "os"
5 "os/exec"
6 "testing"
7)
8
9func TestStagingSuiteDriver(t *testing.T) {
10 for _, path := range []string{"../../scripts/staging-thin.py", "../../scripts/staging-thin-test.py"} {
11 if _, err := os.ReadFile(path); err != nil {
12 t.Fatal(err)
13 }
14 }
15 cmd := exec.Command("python3", "../../scripts/staging-thin-test.py")
16 cmd.Env = append(os.Environ(), "TMPDIR="+t.TempDir())
17 if out, err := cmd.CombinedOutput(); err != nil {
18 t.Fatalf("staging driver: %v\n%s", err, out)
19 }
20}
21