If rtest.py is run from a different directory -- e.g. from a top-level make
check-recursive -- it could not find its default inputs.
import atexit
import pathlib
-TESTFILE = 'tests.txt' # Test specifications
-GRAPHDIR = 'graphs' # Directory of input graphs and data
+TESTFILE = os.path.join(os.path.dirname(__file__), 'tests.txt')
+ # Test specifications
+GRAPHDIR = os.path.join(os.path.dirname(__file__), 'graphs')
+ # Directory of input graphs and data
OUTDIR = 'ndata' # Directory for test output
OUTHTML = 'nhtml' # Directory for html test report
REFDIR = os.environ.get('REFDIR', '') # Directory for expected test output