Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions Tests/iaas/openstack_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def harness(name, *check_fns):
print(f"{name}: {result}")


def run_sanity_checks(container):
def run_preflight_checks(container):
# make sure that we can connect to the cloud and that the user doesn't have elevated privileges
# the former would lead to each testcase aborting with a marginally useful message;
# the latter would lead to scs_0116_permissions aborting, which we don't want to single out
Expand Down Expand Up @@ -278,7 +278,13 @@ def main(argv):
sys.exit(1)

c = make_container(cloud)
run_sanity_checks(c)
try:
run_preflight_checks(c)
except Exception:
logger.critical("Pre-flight checks failed. Reporting all testcases as ABORT.")
for testcase in testcases:
print(f"{testcase}: ABORT")
raise
for testcase in testcases:
harness(testcase, lambda: getattr(c, testcase.replace('-', '_')))
return 0
Expand Down
8 changes: 5 additions & 3 deletions Tests/scs-test-runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,12 @@ def run(cfg, scopes, subjects, sections, preset, num_workers, monitor_url, repor
commands = [cfg.build_check_command(job[0], job[1], sections, output) for job, output in zip(jobs, outputs)]
_run_commands(commands, num_workers=num_workers)
_concat_files(outputs, report_yaml_tmp)
subprocess.run(**cfg.build_sign_command(report_yaml_tmp))
subprocess.run(**cfg.build_upload_command(report_yaml_tmp, monitor_url))
if report_yaml is not None:
if report_yaml is None:
report_yaml = report_yaml_tmp
else:
_move_file(report_yaml_tmp, report_yaml)
subprocess.run(**cfg.build_sign_command(report_yaml))
subprocess.run(**cfg.build_upload_command(report_yaml, monitor_url))
return 0


Expand Down
Loading