You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by mr...@apache.org on 2017/08/21 22:32:24 UTC

[incubator-openwhisk-wskdeploy] branch master updated: Adding debug to see why travis builds are failing (#369)

This is an automated email from the ASF dual-hosted git repository.

mrutkowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-wskdeploy.git


The following commit(s) were added to refs/heads/master by this push:
     new 8cab7ea  Adding debug to see why travis builds are failing (#369)
8cab7ea is described below

commit 8cab7ea8f1da78325a3cbe9d47532ab8e4b280ee
Author: Priti Desai <pd...@us.ibm.com>
AuthorDate: Mon Aug 21 15:32:23 2017 -0700

    Adding debug to see why travis builds are failing (#369)
    
    * Adding debug to see why travis builds are failing
    
    * printing error if it exists
---
 tests/src/integration/common/wskdeploy.go      | 7 ++++++-
 tests/src/integration/flagstests/flags_test.go | 1 +
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/tests/src/integration/common/wskdeploy.go b/tests/src/integration/common/wskdeploy.go
index c22978e..eb0cb32 100644
--- a/tests/src/integration/common/wskdeploy.go
+++ b/tests/src/integration/common/wskdeploy.go
@@ -20,6 +20,7 @@ package common
 import (
 	"os"
 	"os/exec"
+	"fmt"
 )
 
 const cmd = "wskdeploy"
@@ -43,7 +44,11 @@ func NewWskWithPath(path string) *Wskdeploy {
 func (wskdeploy *Wskdeploy) RunCommand(s ...string) ([]byte, error) {
 	command := exec.Command(wskdeploy.Path, s...)
 	command.Dir = wskdeploy.Dir
-	return command.CombinedOutput()
+	output, err := command.CombinedOutput()
+	if err != nil {
+		fmt.Println(err.Error())
+	}
+	return output, err
 }
 
 func (wskdeploy *Wskdeploy) Deploy(manifestPath string, deploymentPath string) ([]byte, error) {
diff --git a/tests/src/integration/flagstests/flags_test.go b/tests/src/integration/flagstests/flags_test.go
index 0340658..29728cf 100644
--- a/tests/src/integration/flagstests/flags_test.go
+++ b/tests/src/integration/flagstests/flags_test.go
@@ -45,6 +45,7 @@ func TestSupportProjectPathTrailingSlash(t *testing.T) {
 	_, err := wskdeploy.DeployProjectPathOnly(projectPath)
 	assert.Equal(t, nil, err, "Failed to deploy based on the projectpath")
 }
+
 // only a yaml manifest
 func TestSupportManifestYamlPath(t *testing.T) {
 	os.Setenv("__OW_API_HOST", wskprops.APIHost)

-- 
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>'].