def helperUpdateDryRun(self, test_name, hpss_path, zstash_path=ZSTASH_PATH):
    '\n        Test `zstash update --dry-run`.\n        '
    self.hpss_path = hpss_path
    use_hpss = self.setupDirs(test_name)
    self.create(use_hpss, zstash_path)
    print_starred('Testing update with an actual change')
    self.assertWorkspace()
    if (not os.path.exists('{}/dir2'.format(self.test_dir))):
        os.mkdir('{}/dir2'.format(self.test_dir))
    write_file('{}/dir2/file2.txt'.format(self.test_dir), 'file2 stuff')
    write_file('{}/dir/file1.txt'.format(self.test_dir), 'file1 stuff with changes')
    os.chdir(self.test_dir)
    cmd = '{}zstash update --dry-run --hpss={}'.format(zstash_path, self.hpss_path)
    (output, err) = run_cmd(cmd)
    os.chdir(TOP_LEVEL)
    expected_present = ['List of files to be updated', 'dir/file1.txt', 'dir2/file2.txt']
    expected_absent = ['ERROR', 'file0', 'file_empty', 'empty_dir', 'INFO: Creating new tar archive']
    self.check_strings(cmd, (output + err), expected_present, expected_absent)
Test `zstash update --dry-run`.
def helperUpdateDryRun(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)
    print_starred('Testing update with an actual change')
    self.assertWorkspace()
    if (not os.path.exists('{}/dir2'.format(self.test_dir))):
        os.mkdir('{}/dir2'.format(self.test_dir))
    write_file('{}/dir2/file2.txt'.format(self.test_dir), 'file2 stuff')
    write_file('{}/dir/file1.txt'.format(self.test_dir), 'file1 stuff with changes')
    os.chdir(self.test_dir)
    cmd = '{}zstash update --dry-run --hpss={}'.format(zstash_path, self.hpss_path)
    (output, err) = run_cmd(cmd)
    os.chdir(TOP_LEVEL)
    expected_present = ['List of files to be updated', 'dir/file1.txt', 'dir2/file2.txt']
    expected_absent = ['ERROR', 'file0', 'file_empty', 'empty_dir', 'INFO: Creating new tar archive']
    self.check_strings(cmd, (output + err), expected_present, expected_absent)