From ff9ba16300829747f5a853e4ac965da99e5fcf6e Mon Sep 17 00:00:00 2001 From: ConfusedPolarBear <33811686+ConfusedPolarBear@users.noreply.github.com> Date: Mon, 31 Oct 2022 01:16:55 -0500 Subject: [PATCH] Update e2e test code --- .../e2e_tests/verifier/report_generator.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper.Tests/e2e_tests/verifier/report_generator.go b/ConfusedPolarBear.Plugin.IntroSkipper.Tests/e2e_tests/verifier/report_generator.go index 4814022..708f864 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper.Tests/e2e_tests/verifier/report_generator.go +++ b/ConfusedPolarBear.Plugin.IntroSkipper.Tests/e2e_tests/verifier/report_generator.go @@ -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") }