units.py (11828:36b064696175) units.py (11879:7388b21d7eac)
1#!/usr/bin/env python2
2#
3# Copyright (c) 2016 ARM Limited
4# All rights reserved
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

--- 132 unchanged lines hidden (view full) ---

141 self.gem5 = gem5
142 self.args = gem5_args
143 self.timeout = timeout
144
145 def _run(self):
146 gem5_cmd = [
147 self.gem5,
148 "-d", self.test_dir,
1#!/usr/bin/env python2
2#
3# Copyright (c) 2016 ARM Limited
4# All rights reserved
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

--- 132 unchanged lines hidden (view full) ---

141 self.gem5 = gem5
142 self.args = gem5_args
143 self.timeout = timeout
144
145 def _run(self):
146 gem5_cmd = [
147 self.gem5,
148 "-d", self.test_dir,
149 "--stats-file", "text://stats.txt?desc=False",
149 "-re",
150 ] + self.args
151
152 try:
153 with ProcessHelper(gem5_cmd, stdout=subprocess.PIPE,
154 stderr=subprocess.PIPE) as p:
155 status, gem5_stdout, gem5_stderr = p.call(timeout=self.timeout)
156 except CallTimeoutException as te:

--- 134 unchanged lines hidden ---
150 "-re",
151 ] + self.args
152
153 try:
154 with ProcessHelper(gem5_cmd, stdout=subprocess.PIPE,
155 stderr=subprocess.PIPE) as p:
156 status, gem5_stdout, gem5_stderr = p.call(timeout=self.timeout)
157 except CallTimeoutException as te:

--- 134 unchanged lines hidden ---