Skip to content

Commit b6f910a

Browse files
authored
nixosTests.tuxguitar: migrate to runTest (NixOS#396010)
2 parents 0a8bb0a + 470a936 commit b6f910a

File tree

2 files changed

+22
-26
lines changed

2 files changed

+22
-26
lines changed

nixos/tests/all-tests.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1350,7 +1350,7 @@ in
13501350
tuptime = handleTest ./tuptime.nix { };
13511351
turbovnc-headless-server = handleTest ./turbovnc-headless-server.nix { };
13521352
turn-rs = handleTest ./turn-rs.nix { };
1353-
tuxguitar = handleTest ./tuxguitar.nix { };
1353+
tuxguitar = runTest ./tuxguitar.nix;
13541354
twingate = runTest ./twingate.nix;
13551355
typesense = handleTest ./typesense.nix { };
13561356
ucarp = handleTest ./ucarp.nix { };

nixos/tests/tuxguitar.nix

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,25 @@
1-
import ./make-test-python.nix (
2-
{ pkgs, ... }:
3-
{
4-
name = "tuxguitar";
5-
meta = with pkgs.lib.maintainers; {
6-
maintainers = [ ];
7-
};
1+
{ ... }:
2+
{
3+
name = "tuxguitar";
4+
meta.maintainers = [ ];
85

9-
nodes.machine =
10-
{ config, pkgs, ... }:
11-
{
12-
imports = [
13-
./common/x11.nix
14-
];
6+
nodes.machine =
7+
{ config, pkgs, ... }:
8+
{
9+
imports = [
10+
./common/x11.nix
11+
];
1512

16-
services.xserver.enable = true;
13+
services.xserver.enable = true;
1714

18-
environment.systemPackages = [ pkgs.tuxguitar ];
19-
};
15+
environment.systemPackages = [ pkgs.tuxguitar ];
16+
};
2017

21-
testScript = ''
22-
machine.wait_for_x()
23-
machine.succeed("tuxguitar >&2 &")
24-
machine.wait_for_window("TuxGuitar - Untitled.tg")
25-
machine.sleep(1)
26-
machine.screenshot("tuxguitar")
27-
'';
28-
}
29-
)
18+
testScript = ''
19+
machine.wait_for_x()
20+
machine.succeed("tuxguitar >&2 &")
21+
machine.wait_for_window("TuxGuitar - Untitled.tg")
22+
machine.sleep(1)
23+
machine.screenshot("tuxguitar")
24+
'';
25+
}

0 commit comments

Comments
 (0)