diff --git a/Makefile b/Makefile index a59f87b19d..6d8a611af2 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,10 @@ func-test: @echo Telemetry Status: $(SAM_CLI_TELEMETRY) pytest --cov samcli.local --cov samcli.commands.local --cov-report term-missing tests/functional/commands/validate tests/functional/commands/cli/test_global_config.py +regres-test: + @echo Telemetry Status: $(SAM_CLI_TELEMETRY) + SAM_CLI_DEV=1 pytest tests/regression + smoke-test: # Smoke tests run in parallel SAM_CLI_DEV=1 pytest -n 4 tests/smoke diff --git a/tests/regression/package/regression_package_base.py b/tests/regression/package/regression_package_base.py index c893a52ba8..7f80dbb1ba 100644 --- a/tests/regression/package/regression_package_base.py +++ b/tests/regression/package/regression_package_base.py @@ -94,4 +94,8 @@ def regression_check(self, args): self.assertEqual(process.returncode, 0) output_aws = output_template_file_aws.read() + if "use_json" in args and args.get("use_json"): + output_sam = json.loads(output_sam) + output_aws = json.loads(output_aws) + self.assertEqual(output_sam, output_aws)