summaryrefslogtreecommitdiff
path: root/tests/helpers/python/frrtest.py
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-09-09 13:51:58 -0400
committerGitHub <noreply@github.com>2018-09-09 13:51:58 -0400
commit55e6c1329f78d5c672a58ff1fad86d7711a649c3 (patch)
tree9b12b90425486cd3e27487b3de46d700b29d333c /tests/helpers/python/frrtest.py
parent879fbc3ec87976d3575e091dc90b671f490468f0 (diff)
parent82f9e9b35839e849a83e8a9341ca1a1ca4a1e537 (diff)
Merge pull request #2862 from opensourcerouting/non-recursive
final non-recursive make
Diffstat (limited to 'tests/helpers/python/frrtest.py')
-rw-r--r--tests/helpers/python/frrtest.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/helpers/python/frrtest.py b/tests/helpers/python/frrtest.py
index da9e447fc0..60bee5c88c 100644
--- a/tests/helpers/python/frrtest.py
+++ b/tests/helpers/python/frrtest.py
@@ -176,8 +176,14 @@ class TestRefOut(object):
basedir = os.path.dirname(inspect.getsourcefile(type(self)))
program = os.path.join(basedir, self.program)
- refin = program + '.in'
- refout = program + '.refout'
+ if getattr(self, 'built_refin', False):
+ refin = binpath(program) + '.in'
+ else:
+ refin = program + '.in'
+ if getattr(self, 'built_refout', False):
+ refout = binpath(program) + '.refout'
+ else:
+ refout = program + '.refout'
intext = ''
if os.path.exists(refin):