diff mbox series

tests: xlate: Change testfile to take "extensions/test_file" as argument

Message ID 20171019124829.11557-1-harshasharmaiitr@gmail.com
State Changes Requested
Delegated to: Pablo Neira
Headers show
Series tests: xlate: Change testfile to take "extensions/test_file" as argument | expand

Commit Message

Harsha Sharma Oct. 19, 2017, 12:48 p.m. UTC
When executing xlate-test.py with specified test file, give
"extensions/test_file.txlate" as argument

Signed-off-by: Harsha Sharma <harshasharmaiitr@gmail.com>
---
 xlate-test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/xlate-test.py b/xlate-test.py
index 43c4be19..860d94d0 100755
--- a/xlate-test.py
+++ b/xlate-test.py
@@ -78,7 +78,7 @@  def main():
         if not args.test.endswith(".txlate"):
             args.test += ".txlate"
         try:
-            with open("extensions/" + args.test, "r") as payload:
+            with open(args.test, "r") as payload:
                 run_test(args.test, payload)
         except IOError:
             print(red("Error: ") + "test file does not exist")