Skip to contentSkip to conversation

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

PATCH New Harsha Sharma 1 participant 1 message Oct 19, 2017 netfilter

lore
Share & tools
lore
#0 lore raw

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

When executing xlate-test.py with specified test file, give "extensions/test_file.txlate" as argument

---
 xlate-test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xlate-test.py +1 -1
index 43c4be19..860d94d0 100755
@@ -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")
Signature · 1 line
2.11.0