diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2017-07-08 00:22:02 +0200 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2017-07-12 17:10:18 +0200 |
commit | 2aced1f7a41ea7e6176631e785431d15a9aa340c (patch) | |
tree | fdf40255e9177c21220022a88197e91b7aaa65de /test | |
parent | 9620ad0f73910ec0402c7ccec2c2c78f019ddcd3 (diff) | |
download | sshfs-2aced1f7a41ea7e6176631e785431d15a9aa340c.tar sshfs-2aced1f7a41ea7e6176631e785431d15a9aa340c.tar.gz sshfs-2aced1f7a41ea7e6176631e785431d15a9aa340c.tar.bz2 sshfs-2aced1f7a41ea7e6176631e785431d15a9aa340c.zip |
Abort on glib assertion errors.
Diffstat (limited to 'test')
-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) |