1
0
Fork 0

Merge pull request #211 from yarda/beakerlib-tests

Beakerlib tests
This commit is contained in:
Jaroslav Škarvada 2019-11-18 17:16:50 +01:00 committed by GitHub
commit 4fc46101b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
38 changed files with 17 additions and 9 deletions

View file

@ -7,6 +7,13 @@ jobs:
- fedora-31-x86_64
- fedora-rawhide-x86_64
trigger: pull_request
- job: tests
trigger: pull_request
metadata:
targets:
- fedora-30-x86_64
- fedora-31-x86_64
- fedora-rawhide-x86_64
specfile_path: tuned.spec
synced_files:
- tuned.spec

View file

@ -68,7 +68,7 @@ release-cp: release-dir
tuned-gui.py tuned-gui.glade \
tuned-gui.desktop $(VERSIONED_NAME)
cp -a doc experiments libexec man profiles systemtap tuned contrib icons \
$(VERSIONED_NAME)
tests $(VERSIONED_NAME)
archive: clean release-cp
tar czf $(VERSIONED_NAME).tar.gz $(VERSIONED_NAME)
@ -223,9 +223,9 @@ clean: clean-html
rm -rf $(VERSIONED_NAME) rpm-build-dir
test:
$(PYTHON) -m unittest discover tests
$(PYTHON) -m unittest discover tests/unit
lint:
$(PYLINT) -E -f parseable tuned *.py tests
$(PYLINT) -E -f parseable tuned *.py tests/unit
.PHONY: clean archive srpm tag test lint

View file

@ -1,5 +1,5 @@
component: tuned
contact: None <rhack@redhat.com>
contact: Robin Hack <rhack@redhat.com>
description: |
Bug summary: Program tuned tried to access /dev/mem between f0000->100000.
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1688371

View file

@ -1,5 +1,5 @@
component: tuned
contact: None <rhack@redhat.com>
contact: Robin Hack <rhack@redhat.com>
description: |
Bug summary: Tuned takes too long to reload/start when "ulimit -n" is high.
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1663412

View file

@ -1,5 +1,5 @@
component: tuned
contact: None <rhack@redhat.com>
contact: Robin Hack <rhack@redhat.com>
description: |
Bug summary: Tuned logs error message if '/sys/class/scsi_host/host*/link_power_management_policy' file does not exists.
Bugzilla link: https://bugzilla.redhat.com/show_bug.cgi?id=1416712

View file

@ -1,6 +1,7 @@
component: tuned
contact: None <rhack@redhat.com>
description: ''
contact: Robin Hack <rhack@redhat.com>
description: |
Basic tuned-adm functionality check.
duration: 5m
relevancy: |
distro = rhel-6: False

View file

@ -1,5 +1,5 @@
import unittest2
import tests.globals
import tests.unit.globals
import tuned.monitors.base
class MockMonitor(tuned.monitors.base.Monitor):