blob: e507a9dbeb8546239dda3bdc176de9551387e1ad [file] [log] [blame]
#!/usr/bin/env python
# Copyright 2019 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.
"""Clobbers all instances of a named cache.
Note that this currently does not support windows.
import argparse
import sys
import clobber_cache_utils
def main(raw_args):
parser = argparse.ArgumentParser()
parser.add_argument('--pool', required=True)
parser.add_argument('--cache', required=True)
args = parser.parse_args(raw_args)
mount_rel_path = args.mount_rel_path
if mount_rel_path is None:
mount_rel_path = 'cache/%s' % args.cache
clobber_cache_utils.clobber_caches(args.swarming_server, args.pool,
args.cache, mount_rel_path, args.dry_run)
return 0
if __name__ == '__main__':