helpers.py (11828:36b064696175) | helpers.py (12575:16ada03839d9) |
---|---|
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 --- 23 unchanged lines hidden (view full) --- 32# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 33# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 34# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 35# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 37# 38# Authors: Andreas Sandberg 39 | 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 --- 23 unchanged lines hidden (view full) --- 32# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 33# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 34# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 35# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 36# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 37# 38# Authors: Andreas Sandberg 39 |
40from __future__ import print_function 41 |
|
40import subprocess 41from threading import Timer 42import time 43import re 44 45class CallTimeoutException(Exception): 46 """Exception that indicates that a process call timed out""" 47 --- 134 unchanged lines hidden (view full) --- 182 assert "file1.c~" in ignore_list 183 assert "file1.c" not in ignore_list 184 assert "#foo" in ignore_list 185 assert "foo#" not in ignore_list 186 187 ignore_list.rules.append(FileIgnoreList.simple("bar.txt")) 188 assert "bar.txt" in ignore_list 189 | 42import subprocess 43from threading import Timer 44import time 45import re 46 47class CallTimeoutException(Exception): 48 """Exception that indicates that a process call timed out""" 49 --- 134 unchanged lines hidden (view full) --- 184 assert "file1.c~" in ignore_list 185 assert "file1.c" not in ignore_list 186 assert "#foo" in ignore_list 187 assert "foo#" not in ignore_list 188 189 ignore_list.rules.append(FileIgnoreList.simple("bar.txt")) 190 assert "bar.txt" in ignore_list 191 |
190 print "SUCCESS!" | 192 print("SUCCESS!") |