def _run_cli(self, argv):
stdout, stderr = StringIO(), StringIO()
+ # this can only do synchronous operations
+ assert argv[0] == "debug"
runner.runner(argv, run_by_human=False, stdout=stdout, stderr=stderr)
return stdout.getvalue()
return d
def do_test_cli_good(self, ignored):
- d = self._run_cli(["manifest", "-u", self.webish_url, self.root_uri])
+ basedir = self.getdir("client0")
+ d = self._run_cli(["manifest",
+ "--node-directory", basedir,
+ self.root_uri])
def _check((out,err)):
lines = [l for l in out.split("\n") if l]
self.failUnlessEqual(len(lines), 4)
d.addCallback(_check)
d.addCallback(lambda res:
- self._run_cli(["manifest", "-u", self.webish_url,
+ self._run_cli(["manifest",
+ "--node-directory", basedir,
"--storage-index", self.root_uri]))
def _check2((out,err)):
lines = [l for l in out.split("\n") if l]
def _run_cli(self, argv):
stdout, stderr = StringIO(), StringIO()
+ # this can only do synchronous operations
+ assert argv[0] == "debug"
runner.runner(argv, run_by_human=False, stdout=stdout, stderr=stderr)
return stdout.getvalue()