Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jacobsa-fuse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
jacobsa-fuse
Commits
e74d8b6a
Commit
e74d8b6a
authored
Mar 24, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a --debug flag.
parent
db0ab82b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
samples/subprocess.go
samples/subprocess.go
+9
-1
No files found.
samples/subprocess.go
View file @
e74d8b6a
...
...
@@ -35,6 +35,8 @@ var fToolPath = flag.String(
""
,
"Path to the mount_sample tool. If unset, we will compile it."
)
var
fDebug
=
flag
.
Bool
(
"debug"
,
false
,
"If true, print fuse debug info."
)
// A struct that implements common behavior needed by tests in the samples/
// directory where the file system is mounted by a subprocess. Use it as an
// embedded field in your test fixture, calling its SetUp method from your
...
...
@@ -273,7 +275,13 @@ func (t *SubprocessTest) initialize() (err error) {
mountCmd
.
Stderr
=
&
stderr
mountCmd
.
ExtraFiles
=
extraFiles
// Start it.
// Handle debug mode.
if
*
fDebug
{
mountCmd
.
Stderr
=
os
.
Stderr
mountCmd
.
Args
=
append
(
mountCmd
.
Args
,
"--fuse.debug"
)
}
// Start the command.
if
err
=
mountCmd
.
Start
();
err
!=
nil
{
err
=
fmt
.
Errorf
(
"mountCmd.Start: %v"
,
err
)
return
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment