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.
This commit is contained in:
Ludovic Courtès 2021-12-13 23:30:06 +01:00
parent 95447b293d
commit 6601cc78bb
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 2 additions and 6 deletions

View File

@ -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))