Fix lttng-gen-tp: Template file must end in .tp
authorChristian Babeux <christian.babeux@efficios.com>
Fri, 14 Dec 2012 01:36:32 +0000 (20:36 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 14 Dec 2012 01:36:32 +0000 (20:36 -0500)
Fixes #297

Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tools/lttng-gen-tp

index adaa278cb2919dc158d9e69c2be8d97d032e5838..79da6b74bbe0b5c123150a04759d56f3164f3bbb 100755 (executable)
@@ -263,6 +263,9 @@ def main(argv=None):
 
     # process arguments
     for arg in args:
+        if arg[-3:] != ".tp":
+                print arg + " does not end in .tp. Skipping."
+                continue
 
         tpl = None
         try:
This page took 0.025352 seconds and 4 git commands to generate.