nixosTests.packagekit: port to python

+6 -4
+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"); 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 })