tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nixosTests.packagekit: port to python
worldofpeace
6 years ago
7d331eae
5efe49ce
+6
-4
1 changed file
expand all
collapse all
unified
split
nixos
tests
packagekit.nix
+6
-4
nixos/tests/packagekit.nix
···
1
-
import ./make-test.nix ({ pkgs, ... }: {
2
name = "packagekit";
3
meta = with pkgs.stdenv.lib.maintainers; {
4
maintainers = [ peterhoeg ];
···
13
};
14
15
testScript = ''
16
-
startAll;
17
18
# send a dbus message to activate the service
19
-
$machine->succeed("dbus-send --system --type=method_call --print-reply --dest=org.freedesktop.PackageKit /org/freedesktop/PackageKit org.freedesktop.DBus.Introspectable.Introspect");
0
0
20
21
# so now it should be running
22
-
$machine->succeed("systemctl is-active packagekit.service");
23
'';
24
})
···
1
+
import ./make-test-python.nix ({ pkgs, ... }: {
2
name = "packagekit";
3
meta = with pkgs.stdenv.lib.maintainers; {
4
maintainers = [ peterhoeg ];
···
13
};
14
15
testScript = ''
16
+
start_all()
17
18
# send a dbus message to activate the service
19
+
machine.succeed(
20
+
"dbus-send --system --type=method_call --print-reply --dest=org.freedesktop.PackageKit /org/freedesktop/PackageKit org.freedesktop.DBus.Introspectable.Introspect"
21
+
)
22
23
# so now it should be running
24
+
machine.wait_for_unit("packagekit.service")
25
'';
26
})