qubes-installer-qubes-os/anaconda/tests/storage/run_storage_tests.py
M. Vefa Bicakci 38f3e28d77
anaconda: Update to 23.19.10
Use the output of

  git diff --full-index --binary anaconda-22.20.13-1..anaconda-23.19.10-1

from anaconda's git repository and fix-up merge conflicts.
2016-04-10 00:00:00 -04:00

32 lines
938 B
Python

#!/usr/bin/python3
import os, sys
from pyanaconda.ui.common import collect
# FIXME: Storage tests don't want to work right now, so they are disabled while
# I debug them so we can get useful data from other tests.
os._exit(77)
if os.geteuid() != 0:
sys.stderr.write("You must be root to run the storage tests; skipping.\n")
# This return code tells the automake test driver that this test was skipped.
os._exit(77)
if "top_srcdir" not in os.environ:
sys.stderr.write("$top_srcdir must be defined in the test environment\n")
# This return code tells the automake test driver that the test setup failed
sys.exit(99)
failures = 0
classes = collect("cases.%s",
os.path.abspath(os.path.join(os.environ["top_srcdir"], "tests/storage/cases/")),
lambda obj: getattr(obj, "desc", None) is not None)
for tc in classes:
obj = tc()
failures += obj.run()
os._exit(failures)