[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/10: tests: childhurd: Generalize command execution over SSH.
From: |
guix-commits |
Subject: |
03/10: tests: childhurd: Generalize command execution over SSH. |
Date: |
Sun, 5 Jun 2022 17:41:14 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 1fc4d821eb3b34e06b217e94f400e13d8030e7b9
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sun Jun 5 22:30:18 2022 +0200
tests: childhurd: Generalize command execution over SSH.
* gnu/tests/virtualization.scm (run-childhurd-test)[run-uname-over-ssh]:
Rename to...
[run-command-over-ssh]: ... this. Add 'command' parameter and honor it.
["SSH up and running"]: Adjust accordingly.
---
gnu/tests/virtualization.scm | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/gnu/tests/virtualization.scm b/gnu/tests/virtualization.scm
index 628cd0549b..0453f38e5e 100644
--- a/gnu/tests/virtualization.scm
+++ b/gnu/tests/virtualization.scm
@@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2017 Christopher Baines <mail@cbaines.net>
-;;; Copyright © 2020, 2021 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2020-2022 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2021 Pierre Langlois <pierre.langlois@gmx.com>
;;;
@@ -151,8 +151,8 @@
(operating-system os)
(memory-size (* 1024 3))))
- (define run-uname-over-ssh
- ;; Program that runs 'uname' over SSH and prints the result on standard
+ (define (run-command-over-ssh . command)
+ ;; Program that runs COMMAND over SSH and prints the result on standard
;; output.
(let ()
(define run
@@ -173,12 +173,12 @@
(userauth-password! session "")
(display
(get-string-all
- (open-remote-input-pipe* session "uname" "-on"))))
+ (open-remote-input-pipe* session #$@command))))
(status
(error "could not connect to childhurd over SSH"
session status)))))))
- (program-file "run-uname-over-ssh" run)))
+ (program-file "run-command-over-ssh" run)))
(define test
(with-imported-modules '((gnu build marionette))
@@ -242,7 +242,7 @@
(use-modules (ice-9 popen))
(get-string-all
- (open-input-pipe #$run-uname-over-ssh)))
+ (open-input-pipe #$(run-command-over-ssh "uname" "-on"))))
marionette))
(test-end))))
- branch master updated (2dae3cbecc -> ff8c7be8d1), guix-commits, 2022/06/05
- 01/10: gnu: commencement: Fetch bootstrap tarballs from ftp.gnu.org too., guix-commits, 2022/06/05
- 05/10: gnu: wpa-supplicant: Install DBus service file., guix-commits, 2022/06/05
- 10/10: gnu: emacs-elm-mode: Update to 0.22.0., guix-commits, 2022/06/05
- 06/10: gnu: python-sh: Update to 1.14.2., guix-commits, 2022/06/05
- 04/10: tests: childhurd: Make sure "guix build -d" works., guix-commits, 2022/06/05
- 03/10: tests: childhurd: Generalize command execution over SSH.,
guix-commits <=
- 09/10: services: guix-data-service: Increase timeout for service start., guix-commits, 2022/06/05
- 02/10: gnu: commencement: Remove unnecessary uses of 'bootstrap-origin'., guix-commits, 2022/06/05
- 07/10: gnu: Add gitlint., guix-commits, 2022/06/05
- 08/10: services: pam-limits: Add sudo and sshd., guix-commits, 2022/06/05