def helperUpdateKeep(self, test_name, hpss_path, zstash_path=ZSTASH_PATH):
    '\n        Test `zstash update --keep`.\n        '
    self.hpss_path = hpss_path
    use_hpss = self.setupDirs(test_name)
    self.create(use_hpss, zstash_path)
    self.add_files(use_hpss, zstash_path, keep=True)
    files = os.listdir('{}/{}'.format(self.test_dir, self.cache))
    if use_hpss:
        expected_files = ['index.db', '000003.tar', '000004.tar', '000001.tar', '000002.tar']
    else:
        expected_files = ['index.db', '000003.tar', '000004.tar', '000000.tar', '000001.tar', '000002.tar']
    if (not compare(files, expected_files)):
        error_message = 'The zstash cache does not contain expected files.\nIt has: {}'.format(files)
        self.stop(error_message)
    os.chdir(TOP_LEVEL)
Test `zstash update --keep`.
def helperUpdateKeep(self, test_name, hpss_path, zstash_path=ZSTASH_PATH):
    '\n        \n        '
    self.hpss_path = hpss_path
    use_hpss = self.setupDirs(test_name)
    self.create(use_hpss, zstash_path)
    self.add_files(use_hpss, zstash_path, keep=True)
    files = os.listdir('{}/{}'.format(self.test_dir, self.cache))
    if use_hpss:
        expected_files = ['index.db', '000003.tar', '000004.tar', '000001.tar', '000002.tar']
    else:
        expected_files = ['index.db', '000003.tar', '000004.tar', '000000.tar', '000001.tar', '000002.tar']
    if (not compare(files, expected_files)):
        error_message = 'The zstash cache does not contain expected files.\nIt has: {}'.format(files)
        self.stop(error_message)
    os.chdir(TOP_LEVEL)