test-lib-main.sh: check --run before prereqs
commitbff8c4a65989c51704a8844f759ed492a1b10bb8
authorKyle J. McKay <mackyle@gmail.com>
Sat, 10 Mar 2018 03:53:54 +0000 (9 19:53 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 10 Mar 2018 03:53:54 +0000 (9 19:53 -0800)
treea37d6abaa774d2b7c5d0449f07092866a9deede8
parent3f94c1aa9ae682dbc6e85f393366f829c1f64694
test-lib-main.sh: check --run before prereqs

When skipping tests using --run there's no reason to complain about
missing prereqs for a test that's being skipped anyway.

Move the $run_list check ahead of the $test_prereq check where it
belongs to avoid bogus missing prerequisite messages when skipping
the tests that set them.

With this ordering, the "--run" default "partially active" --quiet
mode avoids generating spammy messages about missing prereqs that
resulted from skipping tests (via "--run") that would have set them.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
t/test-lib-main.sh