Mercurial > hg > nginx-tests
changeset 1598:f069dd7ba5a7
Tests: compatibility with uwsgi python package on Fedora Linux.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 01 Oct 2020 17:17:04 +0100 |
parents | 36d69685605e |
children | 4e0644119341 |
files | uwsgi.t uwsgi_ssl.t |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/uwsgi.t Thu Oct 01 12:28:34 2020 +0100 +++ b/uwsgi.t Thu Oct 01 17:17:04 2020 +0100 @@ -71,11 +71,14 @@ if ($uwsgihelp !~ /--wsgi-file/) { # uwsgi has no python support, maybe plugin load is necessary push @uwsgiopts, '--plugin', 'python'; + push @uwsgiopts, '--plugin', 'python3'; } +open OLDERR, ">&", \*STDERR; close STDERR; $t->run_daemon('uwsgi', '--socket', '127.0.0.1:' . port(8081), @uwsgiopts, '--wsgi-file', $t->testdir() . '/uwsgi_test_app.py', '--logto', $t->testdir() . '/uwsgi_log'); +open STDERR, ">&", \*OLDERR; $t->run();
--- a/uwsgi_ssl.t Thu Oct 01 12:28:34 2020 +0100 +++ b/uwsgi_ssl.t Thu Oct 01 17:17:04 2020 +0100 @@ -95,12 +95,15 @@ if ($uwsgihelp !~ /--wsgi-file/) { # uwsgi has no python support, maybe plugin load is necessary push @uwsgiopts, '--plugin', 'python'; + push @uwsgiopts, '--plugin', 'python3'; } +open OLDERR, ">&", \*STDERR; close STDERR; $t->run_daemon('uwsgi', @uwsgiopts, '--ssl-socket', '127.0.0.1:' . port(8081) . ",$crt,$key", '--wsgi-file', $d . '/uwsgi_test_app.py', '--logto', $d . '/uwsgi_log'); +open STDERR, ">&", \*OLDERR; $t->run();