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

Commit

Permalink
Testing brick mux e2e failures
Browse files Browse the repository at this point in the history
  • Loading branch information
rishubhjain committed Dec 19, 2018
1 parent 27859b4 commit 39eba5a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 7 additions & 2 deletions e2e/process_utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions extras/centos-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 39eba5a

Please sign in to comment.