mirror of
https://github.com/tailscale/tailscale.git
synced 2025-06-03 21:38:24 +00:00
version: skip TestMkversion on windows
TestMkversion requires UNIX shell to run mkversion.sh. No such shell is present on Windows. Just skip the test. Updates #50 Signed-off-by: Alex Brainman <alex.brainman@gmail.com>
This commit is contained in:
parent
3d34128171
commit
311899709b
@ -7,6 +7,7 @@ package version
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
"runtime"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
@ -26,6 +27,9 @@ func mkversion(t *testing.T, mode, in string) (string, bool) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestMkversion(t *testing.T) {
|
func TestMkversion(t *testing.T) {
|
||||||
|
if runtime.GOOS == "windows" {
|
||||||
|
t.Skip("skip test on Windows, because there is no shell to execute mkversion.sh.")
|
||||||
|
}
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
in string
|
in string
|
||||||
ok bool
|
ok bool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user