Author: Danny Milosavljevic The socket name ended up too long inside the container. Use a shorter one. --- a/pkg/authorization/authz_unix_test.go 2019-01-10 01:55:02.997985947 +0100 +++ b/pkg/authorization/authz_unix_test.go 2019-01-10 02:03:21.177439757 +0100 @@ -24,7 +24,7 @@ ) const ( - pluginAddress = "authz-test-plugin.sock" + pluginAddress = "/tmp/authz-test-plugin.sock" ) func TestAuthZRequestPluginError(t *testing.T) { @@ -263,12 +263,7 @@ // createTestPlugin creates a new sample authorization plugin func createTestPlugin(t *testing.T) *authorizationPlugin { - pwd, err := os.Getwd() - if err != nil { - t.Fatal(err) - } - - client, err := plugins.NewClient("unix:///"+path.Join(pwd, pluginAddress), &tlsconfig.Options{InsecureSkipVerify: true}) + client, err := plugins.NewClient("unix:///"+path.Join("/", pluginAddress), &tlsconfig.Options{InsecureSkipVerify: true}) if err != nil { t.Fatalf("Failed to create client %v", err) } Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/tests/linux-modules.scm
AgeCommit message (Collapse)Author
2020-04-22system: Automatically adjust linux-module packages to use theDanny Milosavljevic
operating-system's kernel. * gnu/system.scm (package-for-kernel): New procedure. (operating-system-directory-base-entries): Use it. * gnu/tests/linux-module.scm: Test it.
2020-04-05gnu: Add kernel-module-loader-service.Brice Waegeneire
* doc/guix.texi (Linux Services): Add a new subsection and document the new service and its configuration. * gnu/services/linux.scm (kernel-module-loader-service-type): New type. (kernel-module-loader-shepherd-service): New procedure. * gnu/tests/linux-modules.scm (module-loader-program): Procedure removed. (modules-loaded?-program): New procedure. (run-loadable-kernel-modules-test): 'module-loader-program' procedure replaced by the new one. [os]: Use 'kernel-module-loader-service'. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
2020-03-22system: Add kernel-loadable-modules to operating-system.Danny Milosavljevic
* gnu/system.scm (<operating-system>): Add kernel-loadable-modules. (operating-system-directory-base-entries): Use it. * doc/guix.texi (operating-system Reference): Document KERNEL-LOADABLE-MODULES. * gnu/build/linux-modules.scm (depmod): New procedure. (make-linux-module-directory): New procedure. Export it. * guix/profiles.scm (linux-module-database): New procedure. Export it. * gnu/tests/linux-modules.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. * gnu/packages/linux.scm (make-linux-libre*)[arguments]<#:phases>[install]: Disable depmod. Remove "build" and "source" symlinks. [native-inputs]: Remove kmod.