comparison 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
comparison
equal deleted inserted replaced
1597:36d69685605e 1598:f069dd7ba5a7
69 my @uwsgiopts = (); 69 my @uwsgiopts = ();
70 70
71 if ($uwsgihelp !~ /--wsgi-file/) { 71 if ($uwsgihelp !~ /--wsgi-file/) {
72 # uwsgi has no python support, maybe plugin load is necessary 72 # uwsgi has no python support, maybe plugin load is necessary
73 push @uwsgiopts, '--plugin', 'python'; 73 push @uwsgiopts, '--plugin', 'python';
74 push @uwsgiopts, '--plugin', 'python3';
74 } 75 }
75 76
77 open OLDERR, ">&", \*STDERR; close STDERR;
76 $t->run_daemon('uwsgi', '--socket', '127.0.0.1:' . port(8081), @uwsgiopts, 78 $t->run_daemon('uwsgi', '--socket', '127.0.0.1:' . port(8081), @uwsgiopts,
77 '--wsgi-file', $t->testdir() . '/uwsgi_test_app.py', 79 '--wsgi-file', $t->testdir() . '/uwsgi_test_app.py',
78 '--logto', $t->testdir() . '/uwsgi_log'); 80 '--logto', $t->testdir() . '/uwsgi_log');
81 open STDERR, ">&", \*OLDERR;
79 82
80 $t->run(); 83 $t->run();
81 84
82 $t->waitforsocket('127.0.0.1:' . port(8081)) 85 $t->waitforsocket('127.0.0.1:' . port(8081))
83 or die "Can't start uwsgi"; 86 or die "Can't start uwsgi";