aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolaus Rath <Nikolaus@rath.org>2017-07-08 00:22:02 +0200
committerNikolaus Rath <Nikolaus@rath.org>2017-07-12 17:10:18 +0200
commit2aced1f7a41ea7e6176631e785431d15a9aa340c (patch)
treefdf40255e9177c21220022a88197e91b7aaa65de
parent9620ad0f73910ec0402c7ccec2c2c78f019ddcd3 (diff)
downloadsshfs-2aced1f7a41ea7e6176631e785431d15a9aa340c.tar
sshfs-2aced1f7a41ea7e6176631e785431d15a9aa340c.tar.gz
sshfs-2aced1f7a41ea7e6176631e785431d15a9aa340c.tar.bz2
sshfs-2aced1f7a41ea7e6176631e785431d15a9aa340c.zip
Abort on glib assertion errors.
-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 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)