Initial Commit
- initial default booting image
This commit is contained in:
38
utils/checkpackagelib/base.py
Normal file
38
utils/checkpackagelib/base.py
Normal file
@@ -0,0 +1,38 @@
|
||||
# See utils/checkpackagelib/readme.txt before editing this file.
|
||||
import re
|
||||
import os
|
||||
|
||||
|
||||
class _CheckFunction(object):
|
||||
def __init__(self, filename, url_to_manual):
|
||||
self.filename = filename
|
||||
self.url_to_manual = url_to_manual
|
||||
self.disable = re.compile(r"^\s*# check-package .*\b{}\b".format(self.__class__.__name__))
|
||||
|
||||
def before(self):
|
||||
pass
|
||||
|
||||
def check_line(self, lineno, text):
|
||||
pass
|
||||
|
||||
def after(self):
|
||||
pass
|
||||
|
||||
|
||||
class _Tool(object):
|
||||
def __init__(self, filename):
|
||||
self.filename = filename
|
||||
|
||||
def run(self):
|
||||
pass
|
||||
|
||||
def hint(self):
|
||||
return ""
|
||||
|
||||
|
||||
def run_test_suite():
|
||||
import pytest
|
||||
return pytest.main(
|
||||
# Disable writing/loading a cache with: -p no:cacheprovider
|
||||
["-v", "-p", "no:cacheprovider", os.path.dirname(__file__)]
|
||||
)
|
||||
Reference in New Issue
Block a user