From 463189cd121ce9a9f79d24c207e7c6c31898ea06 Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Sun, 9 Oct 2016 19:22:57 -0700 Subject: Renamed some examples to make their function more obvious Also, added more comments for the same purpose. --- test/test_fuse.py | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100755 test/test_fuse.py (limited to 'test/test_fuse.py') diff --git a/test/test_fuse.py b/test/test_fuse.py deleted file mode 100755 index 3c60d80..0000000 --- a/test/test_fuse.py +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env python3 -import pytest -import sys - -if __name__ == '__main__': - sys.exit(pytest.main([__file__] + sys.argv[1:])) - -import subprocess -import os -from util import wait_for_mount, umount, cleanup, base_cmdline - -basename = os.path.join(os.path.dirname(__file__), '..') - -def test_fuse(tmpdir): - mnt_dir = str(tmpdir.mkdir('mnt')) - src_dir = str(tmpdir.mkdir('src')) - - cmdline = base_cmdline + \ - [ os.path.join(basename, 'example', 'fusexmp_fh'), - '-f', '-o' , 'use_ino,readdir_ino,kernel_cache', - mnt_dir ] - mount_process = subprocess.Popen(cmdline) - try: - wait_for_mount(mount_process, mnt_dir) - cmdline = [ os.path.join(basename, 'test', 'test'), - os.path.join(mnt_dir, src_dir), - ':' + src_dir ] - subprocess.check_call(cmdline) - except: - cleanup(mnt_dir) - raise - else: - umount(mount_process, mnt_dir) -- cgit v1.2.3