add code to auto-update the version tag in the server + tests

This commit is contained in:
David Dworken
2022-04-08 23:47:13 -07:00
parent 3c6cc1e771
commit 2a083b7d06
3 changed files with 79 additions and 1 deletions

View File

@ -6,6 +6,7 @@ import (
"os"
"os/exec"
"path"
"strings"
"testing"
"time"
)
@ -75,6 +76,9 @@ func RunTestServer(t *testing.T) func() {
if err != nil {
t.Fatalf("failed to kill process: %v", err)
}
if strings.Contains(stderr.String()+stdout.String(), "failed to") {
t.Fatalf("server failed to do something: stderr=%#v, stdout=%#v", stderr.String(), stdout.String())
}
fmt.Printf("stderr=%#v, stdout=%#v\n", stderr.String(), stdout.String())
}
}