mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-12 05:38:04 +00:00
Bugfix: Resolve failing acceptance test
This commit is contained in:
parent
45e9ad870f
commit
cf2f23d747
@ -5,8 +5,7 @@ set -e
|
|||||||
# acceptance test
|
# acceptance test
|
||||||
X=$(./bin/yaml w ./examples/sample.yaml b.c 3 | ./bin/yaml r - b.c)
|
X=$(./bin/yaml w ./examples/sample.yaml b.c 3 | ./bin/yaml r - b.c)
|
||||||
|
|
||||||
if [ $X != 3 ]
|
if [[ $X != 3 ]]; then
|
||||||
then
|
|
||||||
echo "Failed acceptance test: expected 2 but was $X"
|
echo "Failed acceptance test: expected 2 but was $X"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -3,6 +3,5 @@
|
|||||||
# This assumes that gonative and gox is installed as per the 'one time setup' instructions
|
# This assumes that gonative and gox is installed as per the 'one time setup' instructions
|
||||||
# at https://github.com/inconshreveable/gonative
|
# at https://github.com/inconshreveable/gonative
|
||||||
|
|
||||||
rm build/*
|
|
||||||
gox -output="build/{{.Dir}}_{{.OS}}_{{.Arch}}"
|
gox -output="build/{{.Dir}}_{{.OS}}_{{.Arch}}"
|
||||||
|
|
||||||
|
1
yaml.go
1
yaml.go
@ -53,6 +53,7 @@ func newCommandCLI() *cobra.Command {
|
|||||||
rootCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "verbose mode")
|
rootCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "verbose mode")
|
||||||
|
|
||||||
rootCmd.AddCommand(createReadCmd(), createWriteCmd(), createNewCmd())
|
rootCmd.AddCommand(createReadCmd(), createWriteCmd(), createNewCmd())
|
||||||
|
rootCmd.SetOutput(os.Stdout)
|
||||||
|
|
||||||
return rootCmd
|
return rootCmd
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user