From c0aeb01ff75fb4fbaa4c62ef17bbd69fc6d66dfd Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sun, 18 Aug 2019 15:04:24 +0000 Subject: [PATCH] Test.sh fallback --- CHANGELOG.md | 3 +++ pew.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bd22925..c89cafd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -59,6 +59,9 @@ - Project is switch to use Go modules. +- Now test.sh is used by default if copying is not implemented in + Makefile. + ### Removed - *Kernel factory* is removed completely in favor of incremental diff --git a/pew.go b/pew.go index 6484580..b58388b 100644 --- a/pew.go +++ b/pew.go @@ -365,6 +365,9 @@ func whatever(swg *sizedwaitgroup.SizedWaitGroup, ka config.Artifact, if testPath == "" { testPath = result.BuildArtifact + "_test" + if !exists(testPath) { + testPath = tmp + "/" + "test.sh" + } } remoteTest, err := copyTest(q, testPath, ka)