Skip to content
Permalink
Browse files

sanitycheck: workaround file limits

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...
andrewboie authored and nashif committed Jul 3, 2019
1 parent 4b5095d commit 1578ef71b1f4a0980e4cede70183116a782c4972
Showing with 4 additions and 0 deletions.
  1. +4 −0 scripts/sanitycheck
@@ -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
@@ -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:

0 comments on commit 1578ef7

Please sign in to comment.
You can’t perform that action at this time.