[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#29922] [PATCH 2/2] tests: marionette-operating-system: Add initrd p
From: |
Danny Milosavljevic |
Subject: |
[bug#29922] [PATCH 2/2] tests: marionette-operating-system: Add initrd parameter and kernel-arguments. |
Date: |
Tue, 9 Jan 2018 09:46:21 +0100 |
* gnu/tests.scm (marionette-operating-system): Use initrd parameter "on-error"
and kernel-arguments "panic".
---
gnu/tests.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnu/tests.scm b/gnu/tests.scm
index 0caa922fd..d3d15672b 100644
--- a/gnu/tests.scm
+++ b/gnu/tests.scm
@@ -172,6 +172,14 @@ marionette service in the guest is started after the
Shepherd services listed
in REQUIREMENTS."
(operating-system
(inherit os)
+ ;; Make sure the guest dies on failure.
+ (kernel-arguments (cons "panic=1"
+ (operating-system-user-kernel-arguments os)))
+ ;; Make sure the guest doesn't hang in the REPL on failure.
+ (initrd (lambda (fs . rest)
+ (apply (operating-system-initrd os) fs
+ #:on-error 'backtrace
+ rest)))
(services (cons (service marionette-service-type
(marionette-configuration
(requirements requirements)
- [bug#29922] [PATCH v2] linux-boot: Improve error reporting., Danny Milosavljevic, 2018/01/01
- [bug#29922] [PATCH v2] linux-boot: Improve error reporting., Danny Milosavljevic, 2018/01/01
- [bug#29922] [PATCH v2] linux-boot: Improve error reporting., Ludovic Courtès, 2018/01/08
- [bug#29922] [PATCH v2] linux-boot: Improve error reporting., Danny Milosavljevic, 2018/01/08
- [bug#29922] [PATCH v2] linux-boot: Improve error reporting., Ludovic Courtès, 2018/01/08
- [bug#29922] [PATCH v2] linux-boot: Improve error reporting., Danny Milosavljevic, 2018/01/08
- [bug#29922] [PATCH v2] linux-boot: Improve error reporting., Ludovic Courtès, 2018/01/08
- [bug#29922] [PATCH 0/2] Make sure that marionette-operating-system fails on error., Danny Milosavljevic, 2018/01/09
- [bug#29922] [PATCH 1/2] system: Export operating-system-user-kernel-arguments., Danny Milosavljevic, 2018/01/09
- [bug#29922] [PATCH 2/2] tests: marionette-operating-system: Add initrd parameter and kernel-arguments.,
Danny Milosavljevic <=
- [bug#29922] [PATCH 0/2] Make sure that marionette-operating-system fails on error., Ludovic Courtès, 2018/01/09