Move SwapSpace tests into a separate class (#1065422)

Related: rbhz#1065422

Swap space is not like the other things tested here. Moving it into
a separate class allows abstraction of some of the other tests.

Signed-off-by: mulhern <amulhern@redhat.com>
Refactor labeling tests (#1065422)

Related: rhbz#1065422

There are so many commonalities between tests for different filesystems
that it is time to factor those out before new stuff is added.

Signed-off-by: mulhern <amulhern@redhat.com>
Rename misc_test.py to something more descriptive (#1065422)

Related: rhbz#1065422

Signed-off-by: mulhern <amulhern@redhat.com>
Filesystem labeling tests will not run without utilities (#1065422)

Resolves: rhbz#1065422

Check that utilities are available before trying to run tests that use them.

Do this check in the setUp() method of the base class.

Signed-off-by: mulhern <amulhern@redhat.com>
Fix some size_test.py ERRORs (#1065443)

Resolves: rhbz#1065443

Cherry-picked from commit 01c6949ee336e3bb3861a9e94280f5ec1dcc62b4.

Signed-off-by: mulhern <amulhern@redhat.com>
Fix failing udev_test (#1065431)

Resolves: rhbz#1065431

Cherry-picked from commit 01c6949ee336e3bb3861a9e94280f5ec1dcc62b4 (udev_test.py) part.

Signed-off-by: mulhern <amulhern@redhat.com>
Skip a test if device isn't available (#1065431)

Related: rhbz#1065431

Cherry-picked from commit 3e51ef5940d54b5dd8e66da20e7fa345cf694062
(udev_test.py part) on master.

Signed-off-by: mulhern <amulhern@redhat.com>
Update tests/storagetestcase.py (#1065437)

Related: rhbz#1065437

Need these updates in order to support importing this file in action_test.py.

Cherry-picked from commit 01c6949ee336e3bb3861a9e94280f5ec1dcc62b4
(storagetestcase.py part) with some parts omitted (those that relied on
methods being moved from pyananaconda.iutil to blivet.util).

Signed-off-by: mulhern <amulhern@redhat.com>
Fix some problems with action_test.py (#1065437)

Related: rhbz#1065437

Cherry-pick commit 01c6949ee336e3bb3861a9e94280f5ec1dcc62b4
(action_test.py part) from master.

Note that this does not make the tests succeed, but it updates them and will
cause less conflicts later.

Signed-off-by: mulhern <amulhern@redhat.com>
Disable tests in action_test.py (#1065437)

Resolves: rhbz#1065437

These tests put Mock objects in parts of blivet.Blivet which adversely affects
any tests that are run subsequently,
and they fail in complicated ways due to insufficiently
defined Mock objects. They are better out of the way until thorougly
overhauled.

Cherry-picked from commit 3e51ef5940d54b5dd8e66da20e7fa345cf694062
(action_test.py part) on master.

Signed-off-by: mulhern <amulhern@redhat.com>
Add a coverage test target (#1064895)

Resolves: rhbz#1064895

Submitted by: Alexander Todorov <atodorov@redhat.com>
Revised by: mulhern <amulhern@redhat.com>

Signed-off-by: mulhern <amulhern@redhat.com>