Leftovers from #79

Added copyright info and fixed typos.

Signed-off-by: Catalin Dumitru <catdum@amazon.com>
This commit is contained in:
Catalin Dumitru
2021-08-25 17:46:52 +03:00
committed by Andreea Florescu
parent 555474aaba
commit 8901e77522
3 changed files with 7 additions and 2 deletions

View File

@@ -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

View File

@@ -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)

View File

@@ -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