guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: tests: static-networking: Adjust to new style.


From: guix-commits
Subject: branch master updated: tests: static-networking: Adjust to new style.
Date: Mon, 13 Dec 2021 17:39:00 -0500

This is an automated email from the git hooks/post-receive script.

civodul pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 6601cc7  tests: static-networking: Adjust to new style.
6601cc7 is described below

commit 6601cc78bb728f19cb181b1bd3f78cccce23ec4b
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Dec 13 23:30:06 2021 +0100

    tests: static-networking: Adjust to new style.
    
    * gnu/tests/networking.scm (run-static-networking-test)[test]: Remove
    'mkdir', 'chdir', and 'exit' calls'.  Add 'test-runner-current' call.
---
 gnu/tests/networking.scm | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/gnu/tests/networking.scm b/gnu/tests/networking.scm
index 2bcc7f7..3f3f653 100644
--- a/gnu/tests/networking.scm
+++ b/gnu/tests/networking.scm
@@ -64,9 +64,7 @@
             (make-marionette
              '(#$vm "-nic" "user,model=virtio-net-pci")))
 
-          (mkdir #$output)
-          (chdir #$output)
-
+          (test-runner-current (system-test-runner #$output))
           (test-begin "static-networking")
 
           (test-assert "service is up"
@@ -109,9 +107,7 @@
                 (logand flags IFF_UP))
              marionette))
 
-          (test-end)
-
-          (exit (= (test-runner-fail-count (test-runner-current)) 0)))))
+          (test-end))))
 
   (gexp->derivation "static-networking" test))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]