Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated tests to run according to max latest code

  • Loading branch information...
commit fe1ed68e173a17fdcda18665ea6aeb663de854ff 1 parent aaaaecf
C. Titus Brown authored
5 pony_build/tests/test_xmlrpc_api.py
View
@@ -52,6 +52,7 @@ def setup():
global rpc_url
rpc_url = testutil._server_url + 'xmlrpc'
+ print 'RPC URL:', rpc_url
def teardown():
testutil.kill_server()
@@ -62,8 +63,8 @@ def test_check_fn():
hostname = 'testhost'
arch = 'fooarch'
- assert not pbc.check(package, rpc_url,
- tags=tags, hostname=hostname, arch=arch)
+ x = pbc.check(package, rpc_url, tags=tags, hostname=hostname, arch=arch)
+ assert not x, x
def test_send_fn():
client_info = dict(package='test-underway2', arch='fooarch2',
10 pony_build/tests/testutil.py
View
@@ -59,12 +59,10 @@ def run_server(DB_FILE, PORT=None):
PORT = int(os.environ.get('PB_TEST_PORT', DEFAULT_PORT))
print 'STARTING:', sys.executable, 'pony_build.web.run', os.getcwd()
- print [sys.executable, '-u',
- '-m', 'pony_build.web.run', DB_FILE,
- '-p', str(PORT)],
- process = subprocess.Popen([sys.executable, '-u',
- '-m', 'pony_build.web.run', DB_FILE,
- '-p', str(PORT)],
+ cmdlist = [sys.executable, '-u',
+ '-m', 'pony_build.web.run', '-f', DB_FILE,
+ '-p', str(PORT)]
+ process = subprocess.Popen(cmdlist,
stderr=subprocess.STDOUT,
stdout=subprocess.PIPE)
4 pony_build/web/run.py
View
@@ -26,6 +26,10 @@
(options, args) = parser.parse_args()
+ if args:
+ print "pony-build Web server doesn't take any arguments??"
+ sys.exit(-1)
+
push_server = None
if options.use_pubsubhubbub:
push_server = options.push_server
Please sign in to comment.
Something went wrong with that request. Please try again.