mirror of
https://github.com/clearlinux/clr-boot-manager.git
synced 2026-10-04 15:58:34 +00:00
tests/harness: Prove that os-release is used
To keep an eye on things, we ensure that os-release is always used, even within our own playground test suite. Human validation simply needs to check that we're still using the "clr-boot-manager testing" string in the playground root loader files for peace of mind. Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
This commit is contained in:
committed by
William Douglas
parent
5f544c3f5b
commit
d159706cc0
+10
-5
@@ -349,6 +349,16 @@ BootManager *prepare_playground(PlaygroundConfig *config)
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Construct /etc directory for os-release */
|
||||
if (!nc_mkdir_p(PLAYGROUND_ROOT "/" SYSCONFDIR, 00755)) {
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (!file_set_text(PLAYGROUND_ROOT "/" SYSCONFDIR "/os-release",
|
||||
"PRETTY_NAME=\"clr-boot-manager testing\"\n")) {
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (!boot_manager_set_prefix(m, PLAYGROUND_ROOT)) {
|
||||
goto fail;
|
||||
}
|
||||
@@ -371,11 +381,6 @@ BootManager *prepare_playground(PlaygroundConfig *config)
|
||||
goto fail;
|
||||
}
|
||||
|
||||
/* Construct /etc directory for boot_timeout.conf */
|
||||
if (!nc_mkdir_p(PLAYGROUND_ROOT "/" SYSCONFDIR, 00755)) {
|
||||
goto fail;
|
||||
}
|
||||
|
||||
/* Copy the bootloader bits into the tree */
|
||||
if (!push_bootloader_update(0)) {
|
||||
goto fail;
|
||||
|
||||
Reference in New Issue
Block a user