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
+++ 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();
 
--- 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();