예제 #1
0
def test_build_container():
    assert docker.from_env().ping()
    # Make sure we accept all licenses,
    with TempDir() as tmp:
        args = Arguments("canary", "Q google_apis x86_64", tmp,
                         "us.gcr.io/emu-dev-tst", False)
        cloud_build(args)
        expected_files = [
            "cloudbuild.yaml",
            "README.MD",
            "29-google-x64",
            "29-google-x64-no-metrics",
        ]
        for fname in expected_files:
            assert os.path.exists(os.path.join(tmp, fname))
예제 #2
0
def test_build_cloud_only_sys():
    assert docker.from_env().ping()
    # Make sure we accept all licenses,
    with TempDir() as tmp:
        args = Arguments("canary", "Q google_apis x86_64", tmp,
                         "us-docker.pkg.dev/android-emulator-268719/images",
                         False, True)
        cloud_build(args)
        expected_files = [
            "cloudbuild.yaml",
            "README.MD",
            "sys-29-google-x64",
        ]
        for file_name in expected_files:
            assert os.path.exists(os.path.join(
                tmp,
                file_name)), "cannot find {} in {}".format(file_name, tmp)
def create_cloud_build_distribuition(args):
    cloud_build(args)