From 0558d56bcf4d9e2a712d10bd363df12f3250dfa5 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 26 Apr 2014 12:31:55 -0700 Subject: [PATCH] builder/amazon/chroot: get tests psasing on Windows --- builder/amazon/chroot/copy_files_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/builder/amazon/chroot/copy_files_test.go b/builder/amazon/chroot/copy_files_test.go index c7e00018e..d84ee080f 100644 --- a/builder/amazon/chroot/copy_files_test.go +++ b/builder/amazon/chroot/copy_files_test.go @@ -4,10 +4,15 @@ import ( "fmt" "io/ioutil" "os" + "runtime" "testing" ) func TestCopyFile(t *testing.T) { + if runtime.GOOS == "windows" { + return + } + first, err := ioutil.TempFile("", "copy_files_test") if err != nil { t.Fatalf("couldn't create temp file.")