summaryrefslogtreecommitdiff
path: root/test/e2e/common_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-02-02 05:53:15 -0500
committerGitHub <noreply@github.com>2021-02-02 05:53:15 -0500
commit2314af70bdacf75135a11b48b87dba8e461a43ea (patch)
treeb5083d04cb87739a1ff38295fc1fa0b4fadc90e3 /test/e2e/common_test.go
parent52575db9b40ad141dc5521d7646e8ed636651b54 (diff)
parente11d8f15e8d7559bc70ebef2dd0125be9d692da5 (diff)
downloadpodman-2314af70bdacf75135a11b48b87dba8e461a43ea.tar.gz
podman-2314af70bdacf75135a11b48b87dba8e461a43ea.tar.bz2
podman-2314af70bdacf75135a11b48b87dba8e461a43ea.zip
Merge pull request #9189 from baude/macvlandriver
add macvlan as a supported network driver
Diffstat (limited to 'test/e2e/common_test.go')
-rw-r--r--test/e2e/common_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/e2e/common_test.go b/test/e2e/common_test.go
index 781bbb6d2..ffa6f1329 100644
--- a/test/e2e/common_test.go
+++ b/test/e2e/common_test.go
@@ -1,6 +1,7 @@
package integration
import (
+ "bytes"
"fmt"
"io/ioutil"
"math/rand"
@@ -794,3 +795,12 @@ func (p *PodmanTestIntegration) removeCNINetwork(name string) {
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(BeNumerically("<=", 1))
}
+
+func (p *PodmanSessionIntegration) jq(jqCommand string) (string, error) {
+ var out bytes.Buffer
+ cmd := exec.Command("jq", jqCommand)
+ cmd.Stdin = strings.NewReader(p.OutputToString())
+ cmd.Stdout = &out
+ err := cmd.Run()
+ return strings.TrimRight(out.String(), "\n"), err
+}