]> arthur.barton.de Git - bup.git/commit
wvtest.py: set wvtest to wvtest module if __main__
authorRob Browning <rlb@defaultvalue.org>
Tue, 29 Dec 2015 02:00:05 +0000 (20:00 -0600)
committerRob Browning <rlb@defaultvalue.org>
Tue, 29 Dec 2015 19:03:23 +0000 (13:03 -0600)
commitf91c50493ced972865b5f3f4c595c581c58c9fde
tree1d75bee8d3935b2df3d4b3ec72618b6d01193cc3
parentcbba3f22b687cac8c1a96f79c9f16965c455faea
wvtest.py: set wvtest to wvtest module if __main__

Without this, references to wvtest.* may fail, which can be demonstrated
(for example) by adding a "raise AttributeError('foo')' to
_add_posix1e_acl just before the "if posix1e.has_extended(path)" test.
Then "./wvtest.py lib/bup/t/tgit.py" will fail in the end with:

  NameError: global name 'wvtest' is not defined

As a result, wvtest.py never prints a "! ... FAILED" message for the
test, and so "wvtest report" never realizes there was a problem, and
then "make check" exits with zero status.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
wvtest.py