diff --git a/tests/cli/lib/toml-compare b/tests/cli/lib/toml-compare new file mode 100755 index 00000000..bb9a15b3 --- /dev/null +++ b/tests/cli/lib/toml-compare @@ -0,0 +1,13 @@ +#!/usr/bin/env python + +import sys +import toml + +if len(sys.argv) != 3: + print("USAGE: ", __file__, " ") + sys.exit(1) + +blueprint_one = toml.loads(open(sys.argv[1]).read()) +blueprint_two = toml.loads(open(sys.argv[2]).read()) + +assert blueprint_one == blueprint_two diff --git a/tests/cli/test_blueprints_sanity.sh b/tests/cli/test_blueprints_sanity.sh index b7a33f4d..ba4d7b83 100755 --- a/tests/cli/test_blueprints_sanity.sh +++ b/tests/cli/test_blueprints_sanity.sh @@ -51,7 +51,8 @@ __EOF__ rlPhaseEnd rlPhaseStartTest "blueprints show" - rlAssertEquals "show displays blueprint in TOML" "`$CLI blueprints show $BLUEPRINT_NAME`" "`cat $BLUEPRINT_NAME.toml`" + $CLI blueprints show $BLUEPRINT_NAME > shown-$BLUEPRINT_NAME.toml + rlRun -t -c "$(dirname $0)/lib/toml-compare $BLUEPRINT_NAME.toml shown-$BLUEPRINT_NAME.toml" rlPhaseEnd rlPhaseStartTest "SemVer .patch version is incremented automatically"