Ignore:
Timestamp:
Nov 17, 2014, 6:06:02 PM (8 years ago)
Author:
cfuguet
Message:

reconf: support multiple faulty routers in the platform

  • Each faulty router can be passed as a main parameter and should be preceeded with -FAULTY_ROUTER.
  • The same thing is supported by the onerun.py script.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/reconfiguration/platforms/tsar_generic_iob/scripts/onerun.py

    r859 r889  
    4141
    4242parser.add_argument(
    43     '--faulty-router', '-f', dest='faultyrouter', default=-1,
     43    '--faulty-router', '-f', dest='faultyrouter', action='append',
    4444    help='ID (X,Y) of faulty router')
    4545
     
    130130command.extend(["-THREADS", str(ompthreads)])
    131131
    132 if args.faultyrouter != -1:
    133     command.extend(["-FAULTY_ROUTER", str(args.faultyrouter)])
     132if args.faultyrouter != None:
    134133    command.extend(["-FAULTY_MASK", str(args.faultymask)])
     134    for f in args.faultyrouter:
     135        command.extend(["-FAULTY_ROUTER", str(f)])
    135136
    136137if args.debug != None:
Note: See TracChangeset for help on using the changeset viewer.