summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Mark W. Eichin <eichin@thok.org>2009-05-02 23:46:15 +0000
committerGravatar Mark W. Eichin <eichin@thok.org>2009-05-02 23:46:15 +0000
commit342d0869685a65e42ccb5807a0b5c1f1b7fa4ee1 (patch)
tree8c4fb79a08f61f14d1f468c957f90c8e7eca7ba6 /lib
parent71115288fd46ed53af54805b7a8d718029ca9455 (diff)
add safety net for non-svn users.
(really once I pull the duplicate tests out of here there's no reason for this to be runnable anyway...)
Diffstat (limited to 'lib')
-rwxr-xr-xlib/zephyr_tests.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/zephyr_tests.py b/lib/zephyr_tests.py
index e44652e..b4134ee 100755
--- a/lib/zephyr_tests.py
+++ b/lib/zephyr_tests.py
@@ -21,7 +21,10 @@ from ctypes import POINTER, c_void_p, c_char_p
from ctypes import Structure, Union, sizeof
__revision__ = "$Id$"
-__version__ = "%s/%s" % (__revision__.split()[3], __revision__.split()[2])
+try:
+ __version__ = "%s/%s" % (__revision__.split()[3], __revision__.split()[2])
+except IndexError:
+ __version__ = "unknown"
def print_line_or_lines(results, indent):
"""short values on same line, multi-line on later ones..."""