diff --git a/awscli2.spec b/awscli2.spec index f5911e2..dca890e 100644 --- a/awscli2.spec +++ b/awscli2.spec @@ -19,6 +19,8 @@ Patch0: ruamel-yaml-0.17.32.patch Patch1: python312.patch # fix incorrect assertions in TestKubeconfigLoader Patch2: assertions.patch +# skip flaky test which compares yaml output as plain text +Patch3: test-yaml.patch BuildArch: noarch diff --git a/test-yaml.patch b/test-yaml.patch new file mode 100644 index 0000000..e51ba00 --- /dev/null +++ b/test-yaml.patch @@ -0,0 +1,16 @@ +The raw YAML output fields are sometimes printed in non-alphabetical +order, causing the raw text comparison to sometimes fail. The parsed +output is subsequently compared, and that should be all that matters. + +diff --git a/tests/unit/output/test_yaml_output.py b/tests/unit/output/test_yaml_output.py +index b5e3a0a..88132f7 100644 +--- a/tests/unit/output/test_yaml_output.py ++++ b/tests/unit/output/test_yaml_output.py +@@ -62,7 +62,6 @@ class TestYAMLOutput(BaseAWSCommandParamsTest): + " UserId: EXAMPLEUSERID\n" + " UserName: testuser-51\n" + ) +- self.assertEqual(stdout, expected) + parsed_output = self.yaml.load(stdout) + self.assertEqual(self.parsed_response, parsed_output) +