summary refs log tree commit diff
path: root/nixos/tests/installed-tests
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2020-02-06 19:31:59 +0100
committerJan Tojnar <jtojnar@gmail.com>2020-02-06 22:32:13 +0100
commite5f7dacc93ef3657baf7ddeccceaa6a8617c8b2a (patch)
treed1908010f9bfe7d8672ef2950539c402fa78c35d /nixos/tests/installed-tests
parentc942013dbc270cdeb3f36c8d36d9b0c29b57c057 (diff)
downloadnixpkgs-e5f7dacc93ef3657baf7ddeccceaa6a8617c8b2a.tar
nixpkgs-e5f7dacc93ef3657baf7ddeccceaa6a8617c8b2a.tar.gz
nixpkgs-e5f7dacc93ef3657baf7ddeccceaa6a8617c8b2a.tar.bz2
nixpkgs-e5f7dacc93ef3657baf7ddeccceaa6a8617c8b2a.tar.lz
nixpkgs-e5f7dacc93ef3657baf7ddeccceaa6a8617c8b2a.tar.xz
nixpkgs-e5f7dacc93ef3657baf7ddeccceaa6a8617c8b2a.tar.zst
nixpkgs-e5f7dacc93ef3657baf7ddeccceaa6a8617c8b2a.zip
nixos/fwupd: disable test plugins implicitly
invalid test was introduced in https://github.com/fwupd/fwupd/commit/297d1598ef0739dc27c6cc884697bfd2ca03f2f5
and it is disabled in the shipped daemon.conf.

I forgot to reflect that in the module, which caused the daemon to print the following on start-up:

    FuEngine             invalid has incorrect built version invalid

and the command to warn:

    WARNING: The daemon has loaded 3rd party code and is no longer supported by the upstream developers!

To reduce the change of this happening in the future, I moved the list of default disabled plug-ins to the package expression.

I also set the value of the NixOS module option in the config section of the module instead of the default value used previously,
which will allow users to not care about these plug-ins.
Diffstat (limited to 'nixos/tests/installed-tests')
-rw-r--r--nixos/tests/installed-tests/fwupd.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/tests/installed-tests/fwupd.nix b/nixos/tests/installed-tests/fwupd.nix
index b9f761e9958..6a0ceb57dda 100644
--- a/nixos/tests/installed-tests/fwupd.nix
+++ b/nixos/tests/installed-tests/fwupd.nix
@@ -1,11 +1,11 @@
-{ pkgs, makeInstalledTest, ... }:
+{ pkgs, lib, makeInstalledTest, ... }:
 
 makeInstalledTest {
   tested = pkgs.fwupd;
 
   testConfig = {
     services.fwupd.enable = true;
-    services.fwupd.blacklistPlugins = []; # don't blacklist test plugin
+    services.fwupd.blacklistPlugins = lib.mkForce []; # don't blacklist test plugin
     services.fwupd.enableTestRemote = true;
     virtualisation.memorySize = 768;
   };