X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=wvtest.py;h=ef03381bd0328bd8ae23476152b9bcfaf1e01b0f;hb=f91c50493ced972865b5f3f4c595c581c58c9fde;hp=27749e348834ee354e58c59189e4a23cee93937b;hpb=80a4ba9a5fdc430656f62cd11f1c3785c156f832;p=bup.git diff --git a/wvtest.py b/wvtest.py index 27749e3..ef03381 100755 --- a/wvtest.py +++ b/wvtest.py @@ -1,4 +1,9 @@ -#!/usr/bin/env python +#!/bin/sh +"""": # -*-python-*- +bup_python="$(dirname "$0")/cmd/bup-python" +exec "$bup_python" "$0" ${1+"$@"} +""" +# end of bup preamble # # WvTest: # Copyright (C)2007-2012 Versabanq Innovations Inc. and contributors. @@ -125,6 +130,8 @@ if __name__ != '__main__': # we're imported as a module else: return _check(False, 'EXCEPT(%s)' % _code()) + def wvfailure_count(): + return _fails def _check_unfinished(): if _registered: @@ -219,4 +226,5 @@ if __name__ == '__main__': import wvtest as _wvtestmod sys.modules['wvtest'] = _wvtestmod sys.modules['wvtest.wvtest'] = _wvtestmod + wvtest = _wvtestmod wvtest_main(sys.argv[1:])