From 8901e7752288ae1061e2ee888a104c083a451668 Mon Sep 17 00:00:00 2001 From: Catalin Dumitru Date: Wed, 25 Aug 2021 17:46:52 +0300 Subject: [PATCH] Leftovers from #79 Added copyright info and fixed typos. Signed-off-by: Catalin Dumitru --- .buildkite/autogenerate_pipeline.py | 2 ++ integration_tests/test_coverage.py | 5 +++-- test_run.py | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.buildkite/autogenerate_pipeline.py b/.buildkite/autogenerate_pipeline.py index 09ace47..f2f9e0d 100755 --- a/.buildkite/autogenerate_pipeline.py +++ b/.buildkite/autogenerate_pipeline.py @@ -1,5 +1,7 @@ #!/usr/bin/env python3 +# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 OR BSD-3-Clause """ This script is printing the Buildkite pipeline.yml to stdout. This can also be used as a library to print the steps from a different pipeline diff --git a/integration_tests/test_coverage.py b/integration_tests/test_coverage.py index 1df66ec..b4dca47 100644 --- a/integration_tests/test_coverage.py +++ b/integration_tests/test_coverage.py @@ -133,7 +133,8 @@ def test_coverage(profile, no_cleanup): # In the CI Profile we expect the coverage to be manually updated. assert False,\ "Coverage is increased from {} to {}. "\ - "Please update the coverage in coverage_config_{}.".format( + "Please update the coverage in coverage_config_{}.json."\ + .format( previous_coverage, current_coverage, platform.machine() @@ -148,5 +149,5 @@ def test_coverage(profile, no_cleanup): assert False, "Invalid test profile." elif previous_coverage > current_coverage: diff = float(previous_coverage - current_coverage) - assert False, "Coverage drops by {:.2f}%. Please add unit tests for" \ + assert False, "Coverage drops by {:.2f}%. Please add unit tests for " \ "the uncovered lines.".format(diff) diff --git a/test_run.py b/test_run.py index 55ea636..1d3f217 100755 --- a/test_run.py +++ b/test_run.py @@ -1,5 +1,7 @@ #!/usr/bin/env python3 +# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 OR BSD-3-Clause import json import subprocess import platform