Update e2e test code

This commit is contained in:
ConfusedPolarBear 2022-10-31 01:16:55 -05:00
parent 61178832c1
commit ff9ba16300

View File

@ -4,6 +4,7 @@ import (
"encoding/json"
"fmt"
"os"
"os/exec"
"strings"
"time"
@ -77,7 +78,6 @@ func generateReport(hostAddress, apiKey, reportDestination string, keepTimestamp
fmt.Println()
fmt.Println("[+] Saving report")
// TODO: also save analysis statistics
// Store timing data, server information, and plugin configuration
report.StartedAt = start
report.FinishedAt = time.Now()
@ -95,6 +95,9 @@ func generateReport(hostAddress, apiKey, reportDestination string, keepTimestamp
panic(err)
}
// Change report permissions
exec.Command("chown", "1000:1000", reportDestination).Run()
fmt.Println("[+] Done")
}