diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2025-07-14 18:40:24 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2025-07-18 00:43:50 +0200 |
| commit | bf79804508b04b95333478f1533f0b2dcb05f8ec (patch) | |
| tree | 5df12eb82a1d8790d255ce5c1a351a523a5f91dc /gnu/tests | |
| parent | 9596822a6c1bf2394f0f99f9d76fda20ddb595e0 (diff) | |
tests: foreign: Parameterize root partition device.
* gnu/tests/foreign.scm (run-foreign-install-test): Add #:device
parameter and honor it.
Change-Id: I68bddaa25e9ba4131fc10366efed6772a3586a31
Diffstat (limited to 'gnu/tests')
| -rw-r--r-- | gnu/tests/foreign.scm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gnu/tests/foreign.scm b/gnu/tests/foreign.scm index 5509a7d6198..0c321693feb 100644 --- a/gnu/tests/foreign.scm +++ b/gnu/tests/foreign.scm | |||
| @@ -157,12 +157,15 @@ system is expected to be on DEVICE." | |||
| 157 | ;; inferiors. | 157 | ;; inferiors. |
| 158 | (file-append (package-source guix) "/etc/guix-install.sh")) | 158 | (file-append (package-source guix) "/etc/guix-install.sh")) |
| 159 | 159 | ||
| 160 | (define (run-foreign-install-test image name) | 160 | (define* (run-foreign-install-test image name |
| 161 | #:key (device "/dev/vdb1")) | ||
| 161 | "Run an installation of Guix in IMAGE, the QCOW2 image of a systemd-based | 162 | "Run an installation of Guix in IMAGE, the QCOW2 image of a systemd-based |
| 162 | GNU/Linux distro, and check that the installation is functional." | 163 | GNU/Linux distro, and check that the installation is functional. The root |
| 164 | partition of IMAGE is expected to be on DEVICE." | ||
| 163 | (define instrumented-image | 165 | (define instrumented-image |
| 164 | (qcow-image-with-marionette image | 166 | (qcow-image-with-marionette image |
| 165 | #:name (string-append name ".qcow2"))) | 167 | #:name (string-append name ".qcow2") |
| 168 | #:device device)) | ||
| 166 | 169 | ||
| 167 | (define (test tarball) | 170 | (define (test tarball) |
| 168 | (with-imported-modules (source-module-closure | 171 | (with-imported-modules (source-module-closure |
