@@ -603,17 +603,17 @@ def test_upgrade_free_memory_success(self, exec_command, is_alive, putfo):
603
603
device_fw , device_conn , upgrade_op , output , _ = self ._trigger_upgrade ()
604
604
self .assertTrue (device_conn .is_working )
605
605
self .assertEqual (upgrade_op .status , 'success' )
606
- self .assertEqual (exec_command .call_count , 20 )
606
+ self .assertEqual (exec_command .call_count , 22 )
607
607
self .assertEqual (
608
608
exec_command .call_args_list [5 ][0 ][0 ],
609
609
'test -f /etc/init.d/uhttpd && /etc/init.d/uhttpd stop' ,
610
610
)
611
611
self .assertEqual (
612
- exec_command .call_args_list [12 ][0 ][0 ],
612
+ exec_command .call_args_list [14 ][0 ][0 ],
613
613
'test -f /etc/init.d/log && /etc/init.d/log stop' ,
614
614
)
615
615
self .assertEqual (
616
- exec_command .call_args_list [13 ][0 ][0 ],
616
+ exec_command .call_args_list [15 ][0 ][0 ],
617
617
'test -f /sbin/wifi && /sbin/wifi down' ,
618
618
)
619
619
self .assertEqual (putfo .call_count , 1 )
@@ -646,7 +646,7 @@ def test_upgrade_free_memory_success_legacy(self, exec_command, is_alive, putfo)
646
646
device_fw , device_conn , upgrade_op , output , _ = self ._trigger_upgrade ()
647
647
self .assertTrue (device_conn .is_working )
648
648
self .assertEqual (upgrade_op .status , 'success' )
649
- self .assertEqual (exec_command .call_count , 22 )
649
+ self .assertEqual (exec_command .call_count , 24 )
650
650
self .assertEqual (
651
651
exec_command .call_args_list [4 ][0 ][0 ],
652
652
'cat /proc/meminfo | grep MemAvailable' ,
@@ -682,17 +682,17 @@ def test_upgrade_free_memory_failure(self, exec_command, is_alive, putfo):
682
682
device_fw , device_conn , upgrade_op , output , _ = self ._trigger_upgrade ()
683
683
self .assertTrue (device_conn .is_working )
684
684
self .assertEqual (upgrade_op .status , 'aborted' )
685
- self .assertEqual (exec_command .call_count , 26 )
685
+ self .assertEqual (exec_command .call_count , 30 )
686
686
self .assertEqual (
687
- exec_command .call_args_list [17 ][0 ][0 ],
687
+ exec_command .call_args_list [19 ][0 ][0 ],
688
688
'test -f /etc/init.d/uhttpd && /etc/init.d/uhttpd start' ,
689
689
)
690
690
self .assertEqual (
691
- exec_command .call_args_list [24 ][0 ][0 ],
691
+ exec_command .call_args_list [28 ][0 ][0 ],
692
692
'test -f /etc/init.d/log && /etc/init.d/log start' ,
693
693
)
694
694
self .assertEqual (
695
- exec_command .call_args_list [25 ][0 ][0 ],
695
+ exec_command .call_args_list [29 ][0 ][0 ],
696
696
'test -f /sbin/wifi && /sbin/wifi up' ,
697
697
)
698
698
self .assertEqual (putfo .call_count , 0 )
@@ -723,17 +723,17 @@ def test_upgrade_free_memory_aborted(self, exec_command, is_alive, putfo):
723
723
device_fw , device_conn , upgrade_op , output , _ = self ._trigger_upgrade ()
724
724
self .assertTrue (device_conn .is_working )
725
725
self .assertEqual (upgrade_op .status , 'aborted' )
726
- self .assertEqual (exec_command .call_count , 27 )
726
+ self .assertEqual (exec_command .call_count , 31 )
727
727
self .assertEqual (
728
- exec_command .call_args_list [18 ][0 ][0 ],
728
+ exec_command .call_args_list [20 ][0 ][0 ],
729
729
'test -f /etc/init.d/uhttpd && /etc/init.d/uhttpd start' ,
730
730
)
731
731
self .assertEqual (
732
- exec_command .call_args_list [25 ][0 ][0 ],
732
+ exec_command .call_args_list [29 ][0 ][0 ],
733
733
'test -f /etc/init.d/log && /etc/init.d/log start' ,
734
734
)
735
735
self .assertEqual (
736
- exec_command .call_args_list [26 ][0 ][0 ],
736
+ exec_command .call_args_list [30 ][0 ][0 ],
737
737
'test -f /sbin/wifi && /sbin/wifi up' ,
738
738
)
739
739
self .assertEqual (putfo .call_count , 1 )
0 commit comments