gnu: flatpak: Honor the #:tests? flag.
* gnu/packages/package-management.scm (flatpak)[arguments]: Adjust custom 'check phase to honor the #:tests? flag.
This commit is contained in:
		
							parent
							
								
									a08d3cba83
								
							
						
					
					
						commit
						66b2fd0d04
					
				
					 1 changed files with 6 additions and 4 deletions
				
			
		| 
						 | 
					@ -1959,10 +1959,12 @@ cp -r /tmp/locale/*/en_US.*")))
 | 
				
			||||||
          ;; Many tests fail for unknown reasons, so we just run a few basic
 | 
					          ;; Many tests fail for unknown reasons, so we just run a few basic
 | 
				
			||||||
          ;; tests.
 | 
					          ;; tests.
 | 
				
			||||||
          (replace 'check
 | 
					          (replace 'check
 | 
				
			||||||
            (lambda _
 | 
					            (lambda* (#:key tests? #:allow-other-keys)
 | 
				
			||||||
 | 
					              (when tests?
 | 
				
			||||||
                (setenv "HOME" "/tmp")
 | 
					                (setenv "HOME" "/tmp")
 | 
				
			||||||
                (invoke "make" "check"
 | 
					                (invoke "make" "check"
 | 
				
			||||||
                      "TESTS=tests/test-basic.sh tests/test-config.sh testcommon"))))))
 | 
					                        "TESTS=tests/test-basic.sh tests/test-config.sh
 | 
				
			||||||
 | 
					                        testcommon")))))))
 | 
				
			||||||
    (native-inputs
 | 
					    (native-inputs
 | 
				
			||||||
     (list bison
 | 
					     (list bison
 | 
				
			||||||
           dbus ; for dbus-daemon
 | 
					           dbus ; for dbus-daemon
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue