From 2aced1f7a41ea7e6176631e785431d15a9aa340c Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Sat, 8 Jul 2017 00:22:02 +0200 Subject: Abort on glib assertion errors. --- test/test_sshfs.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3