Commit 19a7632e authored by Stefan Göbel's avatar Stefan Göbel
Browse files

Fixed test

parent 7a6520c4
......@@ -8,6 +8,7 @@ package factory
import (
"os"
"testing"
"snot/lib/btrfs/backend"
......@@ -95,7 +96,11 @@ func Test_BtrfsToolFactory_NewBtrfsToolFactory_DefaultCommand (t *testing.T) {
func Test_BtrfsToolFactory_NewBtrfsToolFactory_TestCommand (t *testing.T) {
c := &TestBtrfsCommand {}
if os.Getenv ("MOCK_COMMAND") == "1" {
os.Exit (0)
}
c := &TestBtrfsCommand { FuncName : "Test_BtrfsToolFactory_NewBtrfsToolFactory_TestCommand" }
f, e := factory.NewBtrfsToolFactory (factory.WithBtrfsCommand (c))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment