diff options
author | Ondrej Holy <oholy@redhat.com> | 2019-10-29 11:47:01 +0100 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2019-10-29 12:14:58 +0100 |
commit | e4b39b1b51db2b09bec6b231b0009a3d5b343699 (patch) | |
tree | 0ad81af67c7e024adc12568717d57383c995487f /test | |
parent | 98f4bdbe55ef66866a76ef40f7d44c9fbfeb47f3 (diff) | |
download | gvfs-e4b39b1b51db2b09bec6b231b0009a3d5b343699.tar.gz |
test: Port to python-twisted
Test suite were ported to python3, however, twistd binary is still required
for ftp test cases. The twistd binary is part of python2-twisted, which is
going to be retired. Let's use python3 version instead. It seems that Fedora
has twistd-3 binary, whereas, Debian has twistd3, so try to look for both of
them. The test cases seem working nicely with it as per my testing.
Fixes: https://gitlab.gnome.org/GNOME/gvfs/issues/428
Diffstat (limited to 'test')
-rwxr-xr-x | test/gvfs-test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/gvfs-test b/test/gvfs-test index 73b4e2fb..2c37deeb 100755 --- a/test/gvfs-test +++ b/test/gvfs-test @@ -52,7 +52,6 @@ except (ValueError, ImportError): # umockdev environment for gphoto/MTP tests umockdev_testbed = None -twistd_path = shutil.which('twistd') smbd_path = shutil.which('smbd') def find_alternative(cmds): @@ -67,6 +66,7 @@ samba_running = subprocess.call(['pidof', 'smbd'], stdout=subprocess.PIPE) == 0 httpd_cmd = find_alternative(['apache2', 'httpd', 'apachectl']) have_httpd = httpd_cmd is not None sshd_path = shutil.which('sshd') +twistd_path = find_alternative(['twistd-3', 'twistd3']) local_ip = subprocess.check_output("ip -4 addr | sed -nr '/127\.0\.0/ n; " "/inet / { s/^.*inet ([0-9.]+).*$/\\1/; p; q }'" |