File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import (
1010 "time"
1111
1212 "github.com/adammck/venv"
13+ "os/exec"
1314)
1415
1516const (
@@ -545,13 +546,20 @@ commands:
545546func TestInventory (t * testing.T ) {
546547 t .Parallel ()
547548
549+ cmd := exec .Command ("/bin/sh" , "-c" , "array=( 0 2 ); for i in \" ${array[@]}\" ; do printf \" server$i\n # comment\n \n \" ; done" )
550+ stdoutStderr , err := cmd .CombinedOutput ()
551+ t .Log (string (stdoutStderr ))
552+ if err != nil {
553+ t .Fatal (err )
554+ }
555+
548556 input := `
549557---
550558version: 0.4
551559
552560networks:
553561 staging:
554- inventory: array=( 0 2 ); for i in "${array[@]}"; do printf "server$i\n\n # comment\n"; done
562+ inventory: array=( 0 2 ); for i in "${array[@]}"; do printf "server$i\n# comment\n \n"; done
555563
556564commands:
557565 step1:
You can’t perform that action at this time.
0 commit comments