diff uwsgi.t @ 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 d23d959713b5
children 1d7932bc2847
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();