[Replicant] [vendor_replicant-scripts] [PATCH 4/6] tests: RecoveryRuntime: fix append_recovery_command
Denis 'GNUtoo' Carikli
GNUtoo at cyberdimension.org
Fri Jan 7 18:56:06 UTC 2022
If the cache isn't mounted, we can't write to the
/cache/recovery/command file.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at cyberdimension.org>
---
tests/src/lib/replicant_releases.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/src/lib/replicant_releases.py b/tests/src/lib/replicant_releases.py
index b58b646..096e367 100644
--- a/tests/src/lib/replicant_releases.py
+++ b/tests/src/lib/replicant_releases.py
@@ -192,6 +192,7 @@ class RecoveryRuntime(object):
@trace
def append_recovery_command(self, command):
self.wait_for_ready()
+ self.mount_cache()
self.run(['echo', command, '>>', '/cache/recovery/command'])
@trace
--
2.34.1
More information about the Replicant
mailing list