aa22be179a4dfb9633089ebc7c65c6d6c18a83d5 dropped the backend setting which was used in the test, breaking evaluation of the test in the process. Kind of defeats the purpose of a test if it isn't executed before merging a change to a module…
		
			
				
	
	
		
			26 lines
		
	
	
		
			662 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			662 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
import ./make-test-python.nix ({ pkgs, ... }: {
 | 
						|
  name = "packagekit";
 | 
						|
  meta = with pkgs.lib.maintainers; {
 | 
						|
    maintainers = [ peterhoeg ];
 | 
						|
  };
 | 
						|
 | 
						|
  machine = { ... }: {
 | 
						|
    environment.systemPackages = with pkgs; [ dbus ];
 | 
						|
    services.packagekit = {
 | 
						|
      enable = true;
 | 
						|
    };
 | 
						|
  };
 | 
						|
 | 
						|
  testScript = ''
 | 
						|
    start_all()
 | 
						|
 | 
						|
    # send a dbus message to activate the service
 | 
						|
    machine.succeed(
 | 
						|
        "dbus-send --system --type=method_call --print-reply --dest=org.freedesktop.PackageKit /org/freedesktop/PackageKit org.freedesktop.DBus.Introspectable.Introspect"
 | 
						|
    )
 | 
						|
 | 
						|
    # so now it should be running
 | 
						|
    machine.wait_for_unit("packagekit.service")
 | 
						|
  '';
 | 
						|
})
 |