chiark / gitweb /
adt-run: Fix NameError on 'f' in restriction parsing (#647882)
[autopkgtest.git] / runner / adt-run
index e6e81f12425eeb8d3f1aa953b3ada1c5fdce58a3..f7fff92337c78711210715ced782ab5fc19c6054 100755 (executable)
@@ -1027,12 +1027,12 @@ class Restriction_build_needed(Restriction): pass
 class Restriction_breaks_testbed(Restriction):
  def __init__(r, rname, base):
        if 'revert-full-system' not in testbed.caps:
-               raise Unsupported(f.lno,
+               raise Unsupported(-1,
        'Test breaks testbed but testbed does not advertise revert-full-system')
 class Restriction_needs_root(Restriction):
  def __init__(r, rname, base):
        if 'root-on-testbed' not in testbed.caps:
-               raise Unsupported(f.lno,
+               raise Unsupported(-1,
                        'Test needs root on testbed which is not available')
 
 class Field_Restrictions(FieldBase):