From 39eba5aeb2a1aedec5dd19a10894af7874e9d094 Mon Sep 17 00:00:00 2001 From: rishubhjain Date: Wed, 19 Dec 2018 09:51:26 -0500 Subject: [PATCH] Testing brick mux e2e failures --- e2e/process_utils_test.go | 9 +++++++-- extras/centos-ci.sh | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/e2e/process_utils_test.go b/e2e/process_utils_test.go index 6cda187c9..5d05eb524 100644 --- a/e2e/process_utils_test.go +++ b/e2e/process_utils_test.go @@ -41,7 +41,11 @@ var errFinished = errors.New("os: process already finished") // Stop will terminate the associated process. It will attempt a graceful // shutdown before killing the process. func (tp *testProcess) Stop() error { - tp.Cmd.Process.Signal(os.Interrupt) // try shutting down gracefully + //tp.Cmd.Process.Signal(os.Interrupt) + err := tp.Cmd.Process.Signal(os.Interrupt) // try shutting down gracefully + if err != nil { + return err + } time.Sleep(2 * time.Second) if tp.IsRunning() { time.Sleep(2 * time.Second) @@ -185,7 +189,8 @@ func spawnGlusterd(t *testing.T, configFilePath string, cleanStart bool) (*gdPro } go func() { - g.Cmd.Wait() + err := g.Cmd.Wait() + fmt.Printf("%v", err) }() retries := 4 diff --git a/extras/centos-ci.sh b/extras/centos-ci.sh index 4aa25ac2b..80410d2b5 100755 --- a/extras/centos-ci.sh +++ b/extras/centos-ci.sh @@ -47,6 +47,9 @@ make test TESTOPTIONS=-v # run functional tests make functest +# Printing everything +cat /tmp/gd2_func_test/TestBrickMux/w1/log/glusterd2.log + # tarball the (default) functional test directory TIMESTAMP=$(date +%s) tar -czf "/tmp/gd2_func_test_${TIMESTAMP}.tar.gz" /tmp/gd2_func_test