aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/ctest_driver.py
diff options
context:
space:
mode:
Diffstat (limited to 'project/ctest_driver.py')
-rw-r--r--project/ctest_driver.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/project/ctest_driver.py b/project/ctest_driver.py
index 5e952a8..90362d7 100644
--- a/project/ctest_driver.py
+++ b/project/ctest_driver.py
@@ -23,11 +23,6 @@ import sys
from project import utils
-def read_file(path):
- with open(path, mode="r") as fd:
- return fd.read()
-
-
def _run_is_valid_code(actual, expected):
if actual in expected:
return True
@@ -104,7 +99,7 @@ def action_run(args):
def action_grep(args):
- contents = read_file(args.path)
+ contents = utils.read_file(args.path)
return _match_output(contents, args.pass_regexes, args.fail_regexes)