]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - cmd/safcm-remote/sync/commands_test.go
sync: add SAFCM_HELPER environment variable to commands
[safcm/safcm.git] / cmd / safcm-remote / sync / commands_test.go
index aeeea32f0ce2233ad281f755312024e232beda8a..1b1adf71768dc0b8027c8bb0bd7edfd7c2e30156 100644 (file)
@@ -29,7 +29,12 @@ import (
 )
 
 func TestSyncCommands(t *testing.T) {
+       exe, err := os.Executable()
+       if err != nil {
+               t.Fatal(err)
+       }
        env := append(os.Environ(),
+               "SAFCM_HELPER="+exe,
                "SAFCM_GROUPS=all group1 group2 host.example.org",
                "SAFCM_GROUP_all=all",
                "SAFCM_GROUP_group1=group1",