Make the CI gate work on Gitea by building instead of bind-mounting
This commit was merged in pull request #1.
This commit is contained in:
@@ -176,8 +176,9 @@ func TestRunVersion(t *testing.T) {
|
||||
if code != 0 {
|
||||
t.Fatalf("-version = %d, stderr=%q", code, errb)
|
||||
}
|
||||
if strings.TrimSpace(out) == "" {
|
||||
t.Error("-version: want a version on stdout")
|
||||
version, ok := strings.CutPrefix(out, "fejkdata ")
|
||||
if !ok || strings.TrimSpace(version) == "" {
|
||||
t.Errorf("-version = %q, want the command name and a version on stdout", out)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user