Skip to content
This repository was archived by the owner on Mar 26, 2020. It is now read-only.

Commit 7b9eb71

Browse files
committed
Testing brick mux e2e failures
1 parent 27859b4 commit 7b9eb71

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

e2e/process_utils_test.go

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ var errFinished = errors.New("os: process already finished")
4141
// Stop will terminate the associated process. It will attempt a graceful
4242
// shutdown before killing the process.
4343
func (tp *testProcess) Stop() error {
44-
tp.Cmd.Process.Signal(os.Interrupt) // try shutting down gracefully
44+
//tp.Cmd.Process.Signal(os.Interrupt)
45+
err := tp.Cmd.Process.Signal(os.Interrupt) // try shutting down gracefully
46+
if err != nil {
47+
return err
48+
}
4549
time.Sleep(2 * time.Second)
4650
if tp.IsRunning() {
4751
time.Sleep(2 * time.Second)
@@ -185,7 +189,8 @@ func spawnGlusterd(t *testing.T, configFilePath string, cleanStart bool) (*gdPro
185189
}
186190

187191
go func() {
188-
g.Cmd.Wait()
192+
err := g.Cmd.Wait()
193+
fmt.Printf("%v", err)
189194
}()
190195

191196
retries := 4

extras/centos-ci.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ make test TESTOPTIONS=-v
4747
# run functional tests
4848
make functest
4949

50+
# Printing everything
51+
tail -2000 /tmp/gd2_func_test/TestBrickMux/w1/log/glusterd2.log
52+
5053
# tarball the (default) functional test directory
5154
TIMESTAMP=$(date +%s)
5255
tar -czf "/tmp/gd2_func_test_${TIMESTAMP}.tar.gz" /tmp/gd2_func_test

0 commit comments

Comments
 (0)