Пример #1
0
def run_simulation(manifest_dir: str, build: Build):
    """Run one simulation build and test."""

    results = default_junit_results
    expect = f"\"{build.success}\""

    script = [
        ["../init-build.sh"] + build.settings_args(),
        ["ninja"],
        ["bash", "-c",
         f"expect -c 'spawn ./simulate; set timeout 3000; expect {expect}' | tee {results}"]
    ]

    return run_build_script(manifest_dir, build.name, script, junit=True)