builder/amazon/chroot: get tests psasing on Windows

This commit is contained in:
Mitchell Hashimoto 2014-04-26 12:31:55 -07:00
parent 83add3969f
commit 0558d56bcf
1 changed files with 5 additions and 0 deletions

View File

@ -4,10 +4,15 @@ import (
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"os" "os"
"runtime"
"testing" "testing"
) )
func TestCopyFile(t *testing.T) { func TestCopyFile(t *testing.T) {
if runtime.GOOS == "windows" {
return
}
first, err := ioutil.TempFile("", "copy_files_test") first, err := ioutil.TempFile("", "copy_files_test")
if err != nil { if err != nil {
t.Fatalf("couldn't create temp file.") t.Fatalf("couldn't create temp file.")