aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNikolaus Rath <Nikolaus@rath.org>2017-07-08 00:22:02 +0200
committerNikolaus Rath <Nikolaus@rath.org>2017-07-08 00:37:25 +0200
commit6cc86fc0bdaaeacfb1bd5e4336f2a2d1e5b189b8 (patch)
treed0d9ddb531808ced25e74c84838512d89952af41 /test
parent73e4cf79b0b18ad0fa31ec9d85136e4685379320 (diff)
downloadsshfs-6cc86fc0bdaaeacfb1bd5e4336f2a2d1e5b189b8.tar
sshfs-6cc86fc0bdaaeacfb1bd5e4336f2a2d1e5b189b8.tar.gz
sshfs-6cc86fc0bdaaeacfb1bd5e4336f2a2d1e5b189b8.tar.bz2
sshfs-6cc86fc0bdaaeacfb1bd5e4336f2a2d1e5b189b8.zip
Abort on glib assertion errors.
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_sshfs.py8
1 files changed, 7 insertions, 1 deletions
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)