File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ storage:
157
157
contents:
158
158
inline: |
159
159
[Manager]
160
- DefaultTimeoutStopSec=5s
160
+ DefaultTimeoutStopSec=10s
161
161
- path: /usr/local/bin/nfs-random-write.sh
162
162
mode: 0755
163
163
overwrite: true
@@ -229,14 +229,15 @@ func doSyncTest(c cluster.TestCluster, client platform.Machine) {
229
229
}
230
230
c .Log ("Set link down and rebooting." )
231
231
// Skip the error check as it is expected
232
- cmd := fmt .Sprintf ("sudo systemd-run sh -c 'ip link set %s down && sleep 5 && systemctl reboot'" , netdevice )
232
+ cmd := fmt .Sprintf ("sudo systemd-run sh -c 'ip link set %s down && sleep 2 && systemctl reboot'" , netdevice )
233
233
_ , _ = c .SSH (client , cmd )
234
234
235
+ time .Sleep (10 * time .Second )
235
236
err = util .Retry (8 , 10 * time .Second , func () error {
236
237
// Look for the kernel argument test=1
237
238
kernelArguments , err := c .SSH (client , "cat /proc/cmdline" )
238
239
if err != nil {
239
- return fmt . Errorf ( "failed to read /proc/cmdline: %w" , err )
240
+ return err
240
241
} else if ! strings .Contains (string (kernelArguments ), "test=1" ) {
241
242
c .Fatalf ("Not found test=1 in kernel argument after rebooted" )
242
243
}
You can’t perform that action at this time.
0 commit comments