]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Fix minor dependencies on "allmydata-tahoe" as appname.
authorDaira Hopwood <daira@jacaranda.org>
Fri, 5 Dec 2014 23:29:07 +0000 (23:29 +0000)
committerDaira Hopwood <daira@jacaranda.org>
Fri, 5 Dec 2014 23:29:07 +0000 (23:29 +0000)
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
src/allmydata/test/test_cli.py
src/allmydata/test/test_runner.py

index 8f0ecaa646b03582b525f28be5f16615afd39ac9..6bc5fc1c614b367a90b87e91bdc3a147fe9c0526 100644 (file)
@@ -7,6 +7,7 @@ import simplejson
 
 from mock import patch, Mock, call
 
+import allmydata
 from allmydata.util import fileutil, hashutil, base32, keyutil
 from allmydata import uri
 from allmydata.immutable import upload
@@ -3841,7 +3842,7 @@ class Options(unittest.TestCase):
         # "tahoe --version" dumps text to stdout and exits
         stdout = StringIO()
         self.failUnlessRaises(SystemExit, self.parse, ["--version"], stdout)
-        self.failUnlessIn("allmydata-tahoe", stdout.getvalue())
+        self.failUnlessIn(allmydata.__appname__ + ":", stdout.getvalue())
         # but "tahoe SUBCOMMAND --version" should be rejected
         self.failUnlessRaises(usage.UsageError, self.parse,
                               ["start", "--version"])
index 339bb5ec036ae2e103ccfdd257314fee40735a44..3c79777f8f7df8aa1b26e6d4989f443099d23613 100644 (file)
@@ -149,7 +149,7 @@ class BinTahoe(common_util.SignalMixin, unittest.TestCase, RunBinTahoeMixin):
             out, err, rc_or_sig = res
             self.failUnlessEqual(rc_or_sig, 0, str(res))
 
-            # Fail unless the allmydata-tahoe package is *this* version *and*
+            # Fail unless the __appname__ package is *this* version *and*
             # was loaded from *this* source directory.
 
             required_verstr = str(allmydata.__version__)