remove "rm" uses from test suite

This commit is contained in:
Jean-Paul Calderone 2020-01-17 09:45:39 -05:00
parent 6d83b9c1e1
commit e2fb2d0f4e
2 changed files with 3 additions and 3 deletions

View File

@ -140,7 +140,7 @@ class GridTester(object):
if f not in oldfiles:
raise CommandFailed("um, '%s' was supposed to already be in %s"
% (f, dirname))
self.cli("rm", absfilename)
self.cli("unlink", absfilename)
newfiles = self.listdir(dirname)
if f in newfiles:
raise CommandFailed("failed to remove '%s' from %s" % (f, dirname))

View File

@ -2227,8 +2227,8 @@ class SystemTest(SystemTestMixin, RunBinTahoeMixin, unittest.TestCase):
self.failUnlessEqual(data, "data to be uploaded: file1\n")
d.addCallback(_check_outfile1)
d.addCallback(run, "rm", "tahoe-file0")
d.addCallback(run, "rm", "tahoe:file2")
d.addCallback(run, "unlink", "tahoe-file0")
d.addCallback(run, "unlink", "tahoe:file2")
d.addCallback(run, "ls")
d.addCallback(_check_ls, [], ["tahoe-file0", "file2"])