diff options
Diffstat (limited to 'test/test_sshfs.py')
-rwxr-xr-x | test/test_sshfs.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/test_sshfs.py b/test/test_sshfs.py index e173f64..3da10df 100755 --- a/test/test_sshfs.py +++ b/test/test_sshfs.py @@ -67,8 +67,14 @@ def test_sshfs(tmpdir, debug, cache_timeout, capfd): # FUSE Cache cmdline += [ '-o', 'entry_timeout=0', '-o', 'attr_timeout=0' ] + + + new_env = dict(os.environ) # copy, don't modify + + # Abort on warnings from glib + new_env['G_DEBUG'] = 'fatal-warnings' - mount_process = subprocess.Popen(cmdline) + mount_process = subprocess.Popen(cmdline, env=new_env) try: wait_for_mount(mount_process, mnt_dir) |