Update e2e test code
This commit is contained in:
parent
61178832c1
commit
ff9ba16300
@ -4,6 +4,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
"os/exec"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -77,7 +78,6 @@ func generateReport(hostAddress, apiKey, reportDestination string, keepTimestamp
|
|||||||
fmt.Println()
|
fmt.Println()
|
||||||
fmt.Println("[+] Saving report")
|
fmt.Println("[+] Saving report")
|
||||||
|
|
||||||
// TODO: also save analysis statistics
|
|
||||||
// Store timing data, server information, and plugin configuration
|
// Store timing data, server information, and plugin configuration
|
||||||
report.StartedAt = start
|
report.StartedAt = start
|
||||||
report.FinishedAt = time.Now()
|
report.FinishedAt = time.Now()
|
||||||
@ -95,6 +95,9 @@ func generateReport(hostAddress, apiKey, reportDestination string, keepTimestamp
|
|||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Change report permissions
|
||||||
|
exec.Command("chown", "1000:1000", reportDestination).Run()
|
||||||
|
|
||||||
fmt.Println("[+] Done")
|
fmt.Println("[+] Done")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user