atest/run.py: Allow running tests also when not in project root.
The bug only occurred if `invoke` was installed. Now the requirement
to be in the project root only affects situation where the jar
distribution is created.
@@ -48,6 +48,9 @@ try:
except ImportError:
def jar(*args, **kwargs):
raise RuntimeError("Dependencies missing. See BUILD.rst for details.")
+except AssertionError:
+ def jar(*args, **kwargs):
+ raise RuntimeError("Must be in project roo. See BUILD.rst for details.")
ARGUMENTS = '''
