Changeset 3311

Show
Ignore:
Timestamp:
12/21/09 19:34:02 (10 years ago)
Author:
imcheng
Message:

Changed timeouts for running on Nokia.

Location:
seattle/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • seattle/trunk/repy/safe.py

    r3249 r3311  
    7171import safety_exceptions # This is for exception classes shared with tracebackrepy 
    7272import compiler 
     73import platform # This is for detecting Nokia tablets 
    7374import __builtin__ 
    7475 
     
    7778# and exit with an exception 
    7879EVALUTATION_TIMEOUT = 10 
     80 
     81if platform.machine().startswith('armv'): 
     82  # The Nokia needs more time to evaluate code safety, especially 
     83  # when under heavy loads 
     84  EVALUTATION_TIMEOUT = 200 
    7985 
    8086_NODE_CLASS_OK = [ 
  • seattle/trunk/resource/benchmark_resources.py

    r2754 r3311  
    4646import sys 
    4747import traceback 
     48import platform # for detecting Nokia tablets 
    4849 
    4950 
     
    8586                        'random':0 } 
    8687 
    87  
     88if platform.machine().startswith('armv'): 
     89  # there is not enough filewrite/fileread resources on the Nokia so their requirements  
     90  # should be decreased 
     91  DEFAULT_OFFCUT_DICT['filewrite'] = 800 
     92  DEFAULT_OFFCUT_DICT['fileread'] = 800 
    8893 
    8994# Current this is only raised when nmresourcemath raises a ResourceParseError.