verify.py (13000:c53f8c81369b) verify.py (13001:acf4fd41ba76)
1#!/usr/bin/env python2
2#
3# Copyright 2018 Google, Inc.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

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

139 if args.timeout:
140 cmd.extend(timeout_cmd)
141 cmd.extend([
142 test.full_path(),
143 '-red', test.m5out_dir(),
144 '--listener-mode=off',
145 config_path
146 ])
1#!/usr/bin/env python2
2#
3# Copyright 2018 Google, Inc.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

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

139 if args.timeout:
140 cmd.extend(timeout_cmd)
141 cmd.extend([
142 test.full_path(),
143 '-red', test.m5out_dir(),
144 '--listener-mode=off',
145 config_path
146 ])
147 subprocess.check_call(cmd)
147 try:
148 subprocess.check_call(cmd)
149 except subprocess.CalledProcessError, error:
150 returncode = error.returncode
151 else:
152 returncode = 0
153 with open(os.path.join(test.m5out_dir(), 'returncode'), 'w') as rc:
154 rc.write('%d\n' % returncode)
148
149 runnable = filter(lambda t: not t.compile_only, tests)
150 if args.j == 1:
151 map(run_test, runnable)
152 else:
153 tp = multiprocessing.pool.ThreadPool(args.j)
154 map(lambda t: tp.apply_async(run_test, (t,)), runnable)
155 tp.close()

--- 96 unchanged lines hidden ---
155
156 runnable = filter(lambda t: not t.compile_only, tests)
157 if args.j == 1:
158 map(run_test, runnable)
159 else:
160 tp = multiprocessing.pool.ThreadPool(args.j)
161 map(lambda t: tp.apply_async(run_test, (t,)), runnable)
162 tp.close()

--- 96 unchanged lines hidden ---