From 6cc86fc0bdaaeacfb1bd5e4336f2a2d1e5b189b8 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(-) (limited to 'test') diff --git a/test/test_sshfs.py b/test/test_sshfs.py index aea7e3d..00ea6a8 100755 --- a/test/test_sshfs.py +++ b/test/test_sshfs.py @@ -72,8 +72,14 @@ def test_sshfs(tmpdir, debug, cache_timeout, sync_rd, 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