Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Maintenance:12509
rpmlint-tests.openSUSE_Leap_15.1_Update
suse-tests-without-badness.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File suse-tests-without-badness.patch of Package rpmlint-tests.openSUSE_Leap_15.1_Update
Index: rpmlint-rpmlint-1.10/test.sh =================================================================== --- rpmlint-rpmlint-1.10.orig/test.sh +++ rpmlint-rpmlint-1.10/test.sh @@ -19,7 +19,10 @@ for i in $TESTPATH/test.*.py; do fi done -run_rpmlint="$PYTHON ./rpmlint -C $(pwd)" +export RPMLINT_SKIP_GLOBAL=1 + +run_rpmlint="$PYTHON ./rpmlint -f config -C $(pwd)" + echo "Check that rpmlint executes with no unexpected errors" echo "...in default locale" @@ -40,10 +46,6 @@ $PYTEST -v || exit $? unset PYTHONWARNINGS -echo "$FLAKE8 tests" -$FLAKE8 --version -$FLAKE8 . ./rpmdiff ./rpmlint || exit $? - echo "man page tests" if man --help 2>&1 | grep -q -- --warnings; then tmpfile=$(mktemp) || exit 1 Index: rpmlint-rpmlint-1.10/rpmlint =================================================================== --- rpmlint-rpmlint-1.10.orig/rpmlint +++ rpmlint-rpmlint-1.10/rpmlint @@ -269,8 +269,10 @@ if not os.path.exists(os.path.expanduser info_error = set() # load global config files -configs = glob.glob('/etc/rpmlint/*config') -configs.sort() +configs = [] +if 'RPMLINT_SKIP_GLOBAL' not in os.environ: + configs = glob.glob('/etc/rpmlint/*config') + configs.sort() # Was rpmlint invoked as a prefixed variant? m = re.match(r"(?P<prefix>[\w-]+)-rpmlint(\.py)?", argv0)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor