add polling in Linux
This commit is contained in:
2
.idea/workspace.xml
generated
2
.idea/workspace.xml
generated
@@ -3,6 +3,8 @@
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="fc2840de-29dc-4fca-8e0e-a283562f60ca" name="Default Changelist" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/client.go" beforeDir="false" afterPath="$PROJECT_DIR$/client.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/reporter_linux.go" beforeDir="false" afterPath="$PROJECT_DIR$/reporter_linux.go" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
|
||||
@@ -65,7 +65,7 @@ type Client struct {
|
||||
Id string `json:"id" yaml:"id" xml:"id"`
|
||||
Running bool `json:"running" yaml:"running" xml:"running"`
|
||||
Done chan bool `json:"-" yaml:"-" xml:"-"`
|
||||
Options *ClientOptions `json:"Options" yaml:"Options" xml:"Options"`
|
||||
Options *ClientOptions `json:"options" yaml:"options" xml:"options"`
|
||||
exitCode *int
|
||||
report *TestReport
|
||||
outputStream io.ReadCloser
|
||||
|
||||
@@ -49,7 +49,7 @@ func (r *Reporter) runLogProcessor() {
|
||||
tailer, err := tail.TailFile(r.LogFile, tail.Config{
|
||||
Follow: true,
|
||||
ReOpen: true,
|
||||
Poll: false, // on linux we don't need to poll as the fsnotify works properly
|
||||
Poll: true, // on linux we don't need to poll as the fsnotify works properly
|
||||
MustExist: true,
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user