[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/master] Fix unittest fail for test_bridgedb due to changing where make-ssl-cert puts files.
commit 0d4989e212b070ccfe17bb9ba907a7010f51d155
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date: Tue Nov 19 04:24:41 2013 +0000
Fix unittest fail for test_bridgedb due to changing where make-ssl-cert puts files.
---
lib/bridgedb/test/test_bridgedb.py | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/lib/bridgedb/test/test_bridgedb.py b/lib/bridgedb/test/test_bridgedb.py
index 1c5b649..a7093a6 100644
--- a/lib/bridgedb/test/test_bridgedb.py
+++ b/lib/bridgedb/test/test_bridgedb.py
@@ -66,9 +66,9 @@ class BridgeDBCliTest(unittest.TestCase):
confMoved = pjoin(runDir, 'bridgedb.conf')
gpgFile = pjoin(topDir, 'gnupghome', 'TESTING.subkeys.sec')
gpgMoved = pjoin(runDir, 'gnupghome', 'TESTING.subkeys.sec')
- certFile = pjoin(scriptsDir, 'cert')
+ certFile = pjoin(topDir, 'cert')
certMoved = pjoin(runDir, 'cert')
- keyFile = pjoin(scriptsDir, 'privkey.pem')
+ keyFile = pjoin(topDir, 'privkey.pem')
keyMoved = pjoin(runDir, 'privkey.pem')
makeSSLCertScript = os.path.join(scriptsDir, 'make-ssl-cert')
@@ -93,14 +93,10 @@ class BridgeDBCliTest(unittest.TestCase):
'-n', '50',
'-r', runDir])
mockProcCode = mockProc.wait()
- #mockProcCode = os.system("%s mock -n 50 -r %s -c bridgedb.conf"
- # % (bridgedbScript, runDir))
print("`bridgedb mock' exited with status code %d" % int(mockProcCode))
print("Running `bridgedb' to test server startups...")
bridgedbProc = Popen([bridgedbScript, '-r', runDir])
- #bridgedbProcCode = os.system("%s -r %s -c bridgedb.conf"
- # % (bridgedbScript, runDir))
time.sleep(30)
bridgedbProc.send_signal(signal.SIGINT)
bridgedbProcCode = bridgedbProc.wait()
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits