Revision 18aab5b7 examples/limit.py

View differences:

examples/limit.py
27 27
        info( '*** Testing with', sched, 'bandwidth limiting\n' )
28 28
        if sched == 'rt':
29 29
            release = quietRun( 'uname -r' ).strip('\r\n')
30
            output = quietRun( 'grep CONFIG_RT_GROUP_SCHED /boot/config-%s' % release )
30
            output = quietRun( 'grep CONFIG_RT_GROUP_SCHED /boot/config-%s'
31
                               % release )
31 32
            if output == '# CONFIG_RT_GROUP_SCHED is not set\n':
32
                info( '*** RT Scheduler is not enabled in your kernel. Skipping this test\n' )
33
                info( '*** RT Scheduler is not enabled in your kernel. '
34
                      'Skipping this test\n' )
33 35
                continue
34 36
        host = custom( CPULimitedHost, sched=sched, cpu=cpu )
35 37
        net = Mininet( topo=myTopo, intf=intf, host=host )

Also available in: Unified diff