File tree 4 files changed +16
-12
lines changed
4 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -50,9 +50,10 @@ def main():
50
50
p .expect ("PowerPC 44x Platform" )
51
51
p .expect_prompt ()
52
52
53
- qemu_net_setup (p )
54
- ping_test (p , check = False )
55
- wget_test (p )
53
+ if os .environ .get ('QEMU_NET_TESTS' , True ) != '0' :
54
+ qemu_net_setup (p )
55
+ ping_test (p , check = False )
56
+ wget_test (p )
56
57
57
58
p .send ('echo o > /proc/sysrq-trigger' )
58
59
p .expect ('System Halted, OK to turn off power' )
Original file line number Diff line number Diff line change @@ -55,9 +55,10 @@ def main():
55
55
p .expect ("PowerMac3,1 MacRISC MacRISC2 Power Macintosh" )
56
56
p .expect_prompt ()
57
57
58
- qemu_net_setup (p )
59
- ping_test (p )
60
- wget_test (p )
58
+ if os .environ .get ('QEMU_NET_TESTS' , True ) != '0' :
59
+ qemu_net_setup (p )
60
+ ping_test (p )
61
+ wget_test (p )
61
62
62
63
p .send ("halt" )
63
64
p .expect ("reboot: System halted" )
Original file line number Diff line number Diff line change @@ -56,9 +56,10 @@ def main():
56
56
p .expect ('PowerMac3,1 MacRISC MacRISC2 Power Macintosh' )
57
57
p .expect_prompt ()
58
58
59
- qemu_net_setup (p )
60
- ping_test (p )
61
- wget_test (p )
59
+ if os .environ .get ('QEMU_NET_TESTS' , True ) != '0' :
60
+ qemu_net_setup (p )
61
+ ping_test (p )
62
+ wget_test (p )
62
63
63
64
p .send ('halt' )
64
65
p .wait_for_exit ()
Original file line number Diff line number Diff line change @@ -65,9 +65,10 @@ def main():
65
65
p .expect ("QEMU ppce500" )
66
66
p .expect_prompt ()
67
67
68
- qemu_net_setup (p )
69
- ping_test (p , check = False )
70
- wget_test (p )
68
+ if os .environ .get ('QEMU_NET_TESTS' , True ) != '0' :
69
+ qemu_net_setup (p )
70
+ ping_test (p , check = False )
71
+ wget_test (p )
71
72
72
73
p .send ("echo o > /proc/sysrq-trigger" )
73
74
p .wait_for_exit ()
You can’t perform that action at this time.
0 commit comments