mirror of
https://github.com/rust-vmm/rust-vmm-ci.git
synced 2026-08-05 03:08:31 +00:00
Leftovers from #79
Added copyright info and fixed typos. Signed-off-by: Catalin Dumitru <catdum@amazon.com>
This commit is contained in:
committed by
Andreea Florescu
parent
555474aaba
commit
8901e77522
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user