Mercurial > hg > nginx-tests
diff uwsgi.t @ 363:98f3a8568b0c
Tests: try to load python plugin if uwsgi has no wsgi option.
author | Sergey Budnevitch <sb@waeme.net> |
---|---|
date | Tue, 17 Dec 2013 00:07:40 +0400 |
parents | 6a0d934950bc |
children | dc2f8aac0553 |
line wrap: on
line diff
--- a/uwsgi.t Mon Dec 16 18:59:16 2013 +0400 +++ b/uwsgi.t Tue Dec 17 00:07:40 2013 +0400 @@ -56,7 +56,15 @@ END -$t->run_daemon('uwsgi', '--socket', '127.0.0.1:8081', +my $uwsgihelp = `uwsgi -h`; +my @uwsgiopts = (); + +if ($uwsgihelp !~ /--wsgi-file/) { + # uwsgi has no python support, maybe plugin load is necessary + push @uwsgiopts, '--plugin', 'python'; +} + +$t->run_daemon('uwsgi', '--socket', '127.0.0.1:8081', @uwsgiopts, '--wsgi-file', $t->testdir() . '/uwsgi_test_app.py', '--logto', $t->testdir() . '/uwsgi_log');