# HG changeset patch # User Sergey Kandaurov # Date 1601569024 -3600 # Node ID f069dd7ba5a70eee253646e306499d30994e7938 # Parent 36d69685605ed66162c7e1fef4725066473617bb Tests: compatibility with uwsgi python package on Fedora Linux. diff --git a/uwsgi.t b/uwsgi.t --- a/uwsgi.t +++ b/uwsgi.t @@ -71,11 +71,14 @@ my @uwsgiopts = (); 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(); diff --git a/uwsgi_ssl.t b/uwsgi_ssl.t --- a/uwsgi_ssl.t +++ b/uwsgi_ssl.t @@ -95,12 +95,15 @@ my @uwsgiopts = (); 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();