Skip to content

Commit c60a1fc

Browse files
committed
ostree-ext: test: Add a comment to clarify test code
The test code in the fixture module is a bit confusing, as it arbitrarily gives some files in /etc a label and others another. Add a comment to clarify this is on purpose. Signed-off-by: Omer Tuchfeld <[email protected]>
1 parent ac16dbb commit c60a1fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ostree-ext/src/fixture.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ impl SeLabel {
244244
} else if rootdir == "boot" {
245245
SeLabel::Boot
246246
} else if rootdir == "etc" {
247+
// Arbitrarily give some files in /etc some label and others another
247248
if p.as_str().as_bytes().len() % 2 == 0 {
248249
SeLabel::Etc
249250
} else {

0 commit comments

Comments
 (0)