From e71ae3b8c5b4a8f103a078783fef2f56ee5450a2 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 25 Jul 2025 00:43:22 +0900 Subject: container: remove custom cmd initialisation This part of the interface is very unintuitive and only used for testing, even in testing it is inelegant and can be done better. Signed-off-by: Ophestra --- system/dbus/proc_test.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 system/dbus/proc_test.go (limited to 'system/dbus/proc_test.go') diff --git a/system/dbus/proc_test.go b/system/dbus/proc_test.go new file mode 100644 index 00000000..5e93ace2 --- /dev/null +++ b/system/dbus/proc_test.go @@ -0,0 +1,17 @@ +package dbus_test + +import ( + "os" + "testing" + + "hakurei.app/container" + "hakurei.app/helper" + "hakurei.app/internal" + "hakurei.app/internal/hlog" +) + +func TestMain(m *testing.M) { + container.TryArgv0(hlog.Output{}, hlog.Prepare, internal.InstallOutput) + helper.InternalHelperStub() + os.Exit(m.Run()) +} -- cgit v1.3.1