Skip to content

Commit

Permalink
sanitycheck: workaround file limits
Browse files Browse the repository at this point in the history
sanitycheck is opening an insane number of file descriptors
simultaneously as it opens up communication pipes with
every test that supports emulation, on every emulated
board target.

Increase the resource limit on open files until this code
can be properly refactored.

Workaround for: #17239

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
  • Loading branch information
Andrew Boie authored and nashif committed Jul 3, 2019
1 parent 4b5095d commit 1578ef7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/sanitycheck
Expand Up @@ -189,6 +189,7 @@ import serial
import concurrent
import concurrent.futures
import xml.etree.ElementTree as ET
import resource
from xml.sax.saxutils import escape
from collections import OrderedDict
from itertools import islice
Expand Down Expand Up @@ -3249,6 +3250,9 @@ def main():
global VERBOSE, INLINE_LOGS, JOBS, log_file
global options
global run_individual_tests

# XXX: Workaround for #17239
resource.setrlimit(resource.RLIMIT_NOFILE, (4096, 4096))
options = parse_arguments()

if options.coverage:
Expand Down

0 comments on commit 1578ef7

Please sign in to comment.