Skip to content

Commit

Permalink
Abort on glib assertion errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikratio committed Jul 7, 2017
1 parent 73e4cf7 commit 6cc86fc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/test_sshfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 6cc86fc

Please sign in to comment.