| Index: content/test/ct/run_ct_skps.py
|
| diff --git a/content/test/ct/run_ct_skps.py b/content/test/ct/run_ct_skps.py
|
| index 10c5a31b03ba3db82b8d0d28c60bdb175a654d40..dd4ef9f7b63a2bb9cdc7440f5332befaab94b538 100755
|
| --- a/content/test/ct/run_ct_skps.py
|
| +++ b/content/test/ct/run_ct_skps.py
|
| @@ -9,6 +9,7 @@ import argparse
|
| import os
|
| import subprocess
|
| import sys
|
| +import zipfile
|
|
|
|
|
| PARENT_DIR = os.path.dirname(os.path.realpath(__file__))
|
| @@ -35,8 +36,15 @@ def main():
|
| 'isolateserver all artifacts in this dir.')
|
| args = parser.parse_args()
|
|
|
| - tool_path = os.path.join(SKIA_SRC_DIR, 'out', args.configuration, args.tool)
|
| + # Unzip SKPs into a directory.
|
| + skps_zip = os.path.join(REPOS_BASE_DIR, 'skps',
|
| + 'slave%d.zip' % args.slave_num)
|
| skps_dir = os.path.join(REPOS_BASE_DIR, 'skps', 'slave%d' % args.slave_num)
|
| + os.makedirs(skps_dir)
|
| + with zipfile.ZipFile(skps_zip, 'r') as zip_ref:
|
| + zip_ref.extractall(skps_dir)
|
| +
|
| + tool_path = os.path.join(SKIA_SRC_DIR, 'out', args.configuration, args.tool)
|
| resource_path = os.path.join(SKIA_SRC_DIR, 'resources')
|
|
|
| cmd = [tool_path]
|
|
|