move profile loading before --list output
The --list code needs the profile to check for skipped tests.
diff --git a/tests/oft b/tests/oft
index 091193e..ca7e052 100755
--- a/tests/oft
+++ b/tests/oft
@@ -411,6 +411,8 @@
test_list_generate(config)
oft_config = config
+load_profile(config)
+
# Check if test list is requested; display and exit if so
if config["list"]:
did_print = False
@@ -469,8 +471,6 @@
logging_setup(config)
logging.info("++++++++ " + time.asctime() + " ++++++++")
-load_profile(config)
-
# Generate the test suite
#@todo Decide if multiple suites are ever needed
suite = unittest.TestSuite()