File tree Expand file tree Collapse file tree 3 files changed +24
-15
lines changed Expand file tree Collapse file tree 3 files changed +24
-15
lines changed Original file line number Diff line number Diff line change @@ -123,3 +123,20 @@ Expected Boot Count
123
123
... sudo=True return_rc=False
124
124
125
125
Should Be Equal As Integers ${reboot_count } ${stdout }
126
+
127
+ Create Usr Directory Overlay
128
+ [Documentation] Make /usr dir writable by creating an overlay, rebooting
129
+ ... will go back to being immutable.
130
+
131
+ ${is_bootc } = Is System Bootc
132
+ IF ${is_bootc }
133
+ ${cmd } = Set Variable bootc usr-overlay
134
+ ELSE
135
+ ${cmd } = Set Variable rpm-ostree usroverlay
136
+ END
137
+
138
+ ${stdout } ${stderr } ${rc } = Execute Command
139
+ ... ${cmd }
140
+ ... sudo=True return_rc=True
141
+ ... return_stdout=True return_stderr=True
142
+ Should Be Equal As Integers 0 ${rc }
Original file line number Diff line number Diff line change @@ -93,21 +93,19 @@ Cleanup User Workload
93
93
94
94
Disrupt Service
95
95
[Documentation] Prevent Microshift service from starting correctly.
96
- ${is_ostree } = Is System OSTree
97
96
98
97
${stdout } ${rc } = Execute Command
99
98
... which hostname
100
99
... sudo=False return_rc=True
101
100
IF ${rc } == 0 Set Suite Variable \${HOSTNAME_BIN_PATH} ${stdout }
102
101
103
- ${cmd } = Set Variable sudo chmod 000 ${HOSTNAME_BIN_PATH }
104
- IF ${is_ostree }
105
- ${cmd } = Set Variable sudo rpm-ostree usroverlay && sudo chmod 000 ${HOSTNAME_BIN_PATH }
106
- END
102
+ # This covers both ostree and bootc systems
103
+ ${is_ostree } = Is System OSTree
104
+ IF ${is_ostree } Create Usr Directory Overlay
107
105
108
- ${stdout } ${ rc } = Execute Command
109
- ... ${ cmd }
110
- ... sudo=False return_rc=True
106
+ ${rc } = Execute Command
107
+ ... chmod 000 ${ HOSTNAME_BIN_PATH }
108
+ ... sudo=True return_rc=True
111
109
Should Be Equal As Integers 0 ${rc }
112
110
113
111
Restore Service
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ Resource ../../resources/common.resource
7
7
Resource ../../resources/systemd.resource
8
8
Resource ../../resources/microshift-config.resource
9
9
Resource ../../resources/microshift-process.resource
10
+ Resource ../../resources/ostree.resource
10
11
Resource ../../resources/ostree-health.resource
11
12
12
13
Suite Setup Setup Suite
@@ -235,13 +236,6 @@ ConfigMap Should Be Missing
235
236
... shell=True
236
237
Should Be Equal As Integers ${result.rc } 1
237
238
238
- Create Usr Directory Overlay
239
- [Documentation] Make /usr dir writable by creating an overlay, rebooting will go back to being immutable.
240
- ${stdout } ${rc } = Execute Command
241
- ... rpm-ostree usroverlay
242
- ... sudo=True return_rc=True
243
- Should Be Equal As Integers 0 ${rc }
244
-
245
239
Clear Manifest Directory
246
240
[Documentation] Remove the contents of the manifest directory
247
241
[Arguments] ${manifest_dir }
You can’t perform that action at this time.
0 commit comments