blob: 5ec33c0bf36bf88bb65627c115b79878d6c69c27 [file] [log] [blame]
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Test infra_python.cipd package by running all python tests from there."""
import json
import subprocess
import sys
def main():
# Verify version file is deployed, print it.
with open('CIPD_VERSION.json', 'r') as f:
data =
print 'CIPD_VERSION.json:'
print data
version_info = json.loads(data)
assert version_info['package_name'].startswith('infra/infra_python/')
assert version_info['instance_id']
['python', '', 'test', '--no-coverage'], executable=sys.executable)
if __name__ == '__main__':