chore: add elapsed time logging to plugin build process
Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
13be8e6dfb
commit
510acde3db
1 changed files with 3 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
"testing"
|
"testing"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/navidrome/navidrome/conf"
|
"github.com/navidrome/navidrome/conf"
|
||||||
"github.com/navidrome/navidrome/conf/configtest"
|
"github.com/navidrome/navidrome/conf/configtest"
|
||||||
|
|
@ -42,10 +43,11 @@ func TestPlugins(t *testing.T) {
|
||||||
|
|
||||||
func buildTestPlugins(t *testing.T, path string) {
|
func buildTestPlugins(t *testing.T, path string) {
|
||||||
t.Helper()
|
t.Helper()
|
||||||
|
start := time.Now()
|
||||||
t.Logf("[BeforeSuite] Current working directory: %s", path)
|
t.Logf("[BeforeSuite] Current working directory: %s", path)
|
||||||
cmd := exec.Command("make", "-C", path)
|
cmd := exec.Command("make", "-C", path)
|
||||||
out, err := cmd.CombinedOutput()
|
out, err := cmd.CombinedOutput()
|
||||||
t.Logf("[BeforeSuite] Make output: %s", string(out))
|
t.Logf("[BeforeSuite] Make output: %s elapsed: %s", string(out), time.Since(start))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("Failed to build test plugins: %v", err)
|
t.Fatalf("Failed to build test plugins: %v", err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue