added -quick options to skip long tests
This commit is contained in:
1 parent
10fdd01dc8
commit
c5da46f125
6 files changed
+12
No files matched your search
@@ -7,6 +7,7 @@ Test for simpleperf.py
|
||||
import unittest
|
||||
import pexpect
|
||||
import re
|
||||
import sys
|
||||
from mininet.log import setLogLevel
|
||||
from mininet.net import Mininet
|
||||
from mininet.node import CPULimitedHost
|
||||
@@ -16,6 +17,7 @@ from mininet.examples.simpleperf import SingleSwitchTopo
|
||||
|
||||
class testSimplePerf( unittest.TestCase ):
|
||||
|
||||
@unittest.skipIf( '-quick' in sys.argv, 'long test' )
|
||||
def testE2E( self ):
|
||||
"Run the example and verify ping and iperf results"
|
||||
p = pexpect.spawn( 'python -m mininet.examples.simpleperf' )
|
||||
|
||||
Reference in new issue
Block a user