Skip to content

Commit

Permalink
Make default timeout and tol visible.
Browse files Browse the repository at this point in the history
  • Loading branch information
jblueh committed Sep 28, 2022
1 parent 36c5698 commit bf4d162
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions TestCases/TestCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ def killall(self):
""" Issues a shell command that kills all processes matching self.exec, except this process. """
os.system('pgrep %s | grep -vx %d | xargs kill -9' % (self.exec, os.getpid()))

default_timeout = 300
default_tol = 0.001

def __init__(self,tag_in):

Expand Down Expand Up @@ -98,10 +100,8 @@ def __init__(self,tag_in):
self.cpu_arch = platform.processor()
self.enabled_on_cpu_arch = ["x86_64", "aarch64"]
self.command = self.Command()

# These can be optionally varied
self.timeout = 300
self.tol = 0.001
self.timeout = default_timeout
self.tol = default_tol

# Options for file-comparison tests
self.reference_file = "of_grad.dat.ref"
Expand Down

0 comments on commit bf4d162

Please sign in to comment.