Skip to content

Commit e3f18b8

Browse files
committed
Added basic, incomplete tests for hibernate/resume
builds successfully, but still need to figure out why qemu fails
1 parent c27b67d commit e3f18b8

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/ugrd/fs/resume.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,9 @@ def handle_early_resume(self) -> str:
6464
@contains("late_resume")
6565
def handle_late_resume(self) -> None:
6666
self.logger.warning(
67-
"[late_resume] enabled, this can result in data loss if filesystems are modified before resuming. Read the docs for more info."
67+
"[late_resume] enabled, this can result in data loss if filesystems are modified before resuming. Read the docs for more info."
6868
)
69-
return handle_early_resume(
70-
self
71-
) # At the moment it's the same code but delayed, will change when more features are added
72-
69+
return handle_early_resume(self) # At the moment it's the same code but delayed, will change when more features are added
7370

7471
@contains("test_resume")
7572
def test_init_swap_uuid(self):

src/ugrd/fs/resume.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ test_copy_config = [ "test_resume", "test_swap_uuid" ]
55
[imports.build_pre]
66
"ugrd.fs.resume" = [ "test_init_swap_uuid" ]
77

8+
[imports.build_pre]
9+
"ugrd.fs.resume" = [ "test_init_swap_uuid" ]
10+
811
[imports.init_main]
912
"ugrd.fs.resume" = [ "handle_early_resume", "handle_late_resume"]
1013

@@ -22,3 +25,5 @@ late_resume = "bool"
2225
test_resume = "bool"
2326
test_swap_uuid = "str"
2427

28+
[import_order.before]
29+
handle_resume = "mount_fstab"

0 commit comments

Comments
 (0)