Skip to content

Commit

Permalink
Add debug output
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
  • Loading branch information
jimmykarily committed Apr 24, 2023
1 parent 5fb2080 commit 79cee2e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/tests_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"net/http"
"os"
"os/exec"
"path"
"strconv"
"strings"
"testing"
Expand Down Expand Up @@ -145,6 +146,11 @@ func startVM(iso string) (context.Context, VM) {
vm := NewVM(m, stateDir)

ctx, err := vm.Start(context.Background())
if err != nil {
so, _ := os.ReadFile(path.Join(stateDir, "stdout"))
se, _ := os.ReadFile(path.Join(stateDir, "stderr"))
fmt.Printf("An error occured.\nStderr = %+v\nStdout = %+v\n", string(se), string(so))
}
Expect(err).ToNot(HaveOccurred())

return ctx, vm
Expand Down

0 comments on commit 79cee2e

Please sign in to comment.