We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbaf7c5 commit e86a6ecCopy full SHA for e86a6ec
1 file changed
cmd/sup/main_test.go
@@ -10,6 +10,7 @@ import (
10
"time"
11
12
"github.com/adammck/venv"
13
+ "os/exec"
14
)
15
16
const (
@@ -545,13 +546,20 @@ commands:
545
546
func TestInventory(t *testing.T) {
547
t.Parallel()
548
549
+ cmd := exec.Command("/bin/sh", "-c", "echo \"server0\n# comment\n\nserver2\n\"")
550
+ stdoutStderr, err := cmd.CombinedOutput()
551
+ t.Log(string(stdoutStderr))
552
+ if err != nil {
553
+ t.Fatal(err)
554
+ }
555
+
556
input := `
557
---
558
version: 0.4
559
560
networks:
561
staging:
- inventory: array=( 0 2 ); for i in "${array[@]}"; do printf "server$i\n\n# comment\n"; done
562
+ inventory: echo "server0\n# comment\n\nserver2\n"
563
564
commands:
565
step1:
0 commit comments