nixosTests.hub: migrate to runTest (#400180)

authored by Pol Dellaiera and committed by GitHub 10ccc662 48674832

+17 -19
+1 -1
nixos/tests/all-tests.nix
··· 636 home-assistant = runTest ./home-assistant.nix; 637 hostname = handleTest ./hostname.nix { }; 638 hound = handleTest ./hound.nix { }; 639 - hub = handleTest ./git/hub.nix { }; 640 hydra = runTest ./hydra; 641 i3wm = handleTest ./i3wm.nix { }; 642 icingaweb2 = runTest ./icingaweb2.nix;
··· 636 home-assistant = runTest ./home-assistant.nix; 637 hostname = handleTest ./hostname.nix { }; 638 hound = handleTest ./hound.nix { }; 639 + hub = runTest ./git/hub.nix; 640 hydra = runTest ./hydra; 641 i3wm = handleTest ./i3wm.nix { }; 642 icingaweb2 = runTest ./icingaweb2.nix;
+16 -18
nixos/tests/git/hub.nix
··· 1 - import ../make-test-python.nix ( 2 - { pkgs, ... }: 3 - { 4 - name = "hub"; 5 - meta = with pkgs.lib.maintainers; { 6 - maintainers = [ nequissimus ]; 7 - }; 8 9 - nodes.hub = 10 - { pkgs, ... }: 11 - { 12 - environment.systemPackages = [ pkgs.hub ]; 13 - }; 14 15 - testScript = '' 16 - assert "git version ${pkgs.git.version}\nhub version ${pkgs.hub.version}\n" in hub.succeed("hub version") 17 - assert "These GitHub commands are provided by hub" in hub.succeed("hub help") 18 - ''; 19 - } 20 - )
··· 1 + { pkgs, ... }: 2 + { 3 + name = "hub"; 4 + meta = with pkgs.lib.maintainers; { 5 + maintainers = [ nequissimus ]; 6 + }; 7 8 + nodes.hub = 9 + { pkgs, ... }: 10 + { 11 + environment.systemPackages = [ pkgs.hub ]; 12 + }; 13 14 + testScript = '' 15 + assert "git version ${pkgs.git.version}\nhub version ${pkgs.hub.version}\n" in hub.succeed("hub version") 16 + assert "These GitHub commands are provided by hub" in hub.succeed("hub help") 17 + ''; 18 + }