Skip to content

Commit f5ccca9

Browse files
committed
Use workaround for bug in stashcp < 5.1.0-5
1 parent 9416ce0 commit f5ccca9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

osgtest/tests/test_460_stashcache.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,12 @@ def test_04_xroot_fetch_from_cache(self):
7979
self.assertCached(name, contents)
8080

8181
def test_05_stashcp(self):
82+
command = ["stashcp", "-d"]
83+
if core.package_version_compare('stashcache-client', '5.1.0-5') < 0:
84+
command.append("--cache=root://localhost")
8285
name, contents = self.testfiles[3]
8386
with tempfile.NamedTemporaryFile(mode="r+b") as tf:
84-
core.check_system(["stashcp", "-d", "/"+name, tf.name],
87+
core.check_system(command + ["/"+name, tf.name],
8588
"Checking stashcp")
8689
result = tf.read()
8790
self.assertEqual(result, contents, "stashcp'ed file does match expected")

0 commit comments

Comments
 (0)