add polling in Linux

main
Ben Grewell 4 years ago
parent f29775c03a
commit 44a0f92611

@ -3,6 +3,8 @@
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="fc2840de-29dc-4fca-8e0e-a283562f60ca" name="Default Changelist" comment=""> <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$/.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> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />

@ -65,7 +65,7 @@ type Client struct {
Id string `json:"id" yaml:"id" xml:"id"` Id string `json:"id" yaml:"id" xml:"id"`
Running bool `json:"running" yaml:"running" xml:"running"` Running bool `json:"running" yaml:"running" xml:"running"`
Done chan bool `json:"-" yaml:"-" xml:"-"` Done chan bool `json:"-" yaml:"-" xml:"-"`
Options *ClientOptions `json:"Options" yaml:"Options" xml:"Options"` Options *ClientOptions `json:"options" yaml:"options" xml:"options"`
exitCode *int exitCode *int
report *TestReport report *TestReport
outputStream io.ReadCloser outputStream io.ReadCloser

@ -49,7 +49,7 @@ func (r *Reporter) runLogProcessor() {
tailer, err := tail.TailFile(r.LogFile, tail.Config{ tailer, err := tail.TailFile(r.LogFile, tail.Config{
Follow: true, Follow: true,
ReOpen: 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, MustExist: true,
}) })
if err != nil { if err != nil {

Loading…
Cancel
Save