Util-Linux package development
 help / color / mirror / Atom feed
* debug parallel root checks
@ 2018-03-09 14:47 Ruediger Meier
  2018-03-09 15:06 ` Ruediger Meier
  0 siblings, 1 reply; 6+ messages in thread
From: Ruediger Meier @ 2018-03-09 14:47 UTC (permalink / raw)
  To: util-linux

Hi,

Our parallel root checks look already nice on the first view.
On the second view they fail the stress test, at least on my
system.

Mostly umounting fails due to "device in use" and similar. For me it
seems that "udevadm --settle" has no effect sometimes. Very often the
label, utab, context and recursive mount tests make problems. I've made
sure that udisks and similar devils are not running.

One may try to use my script sippet below to run a loop until it fails.
You should remove the "sort" from run.sh to get more failures:

patch tests/run.sh
-----
 printf "%s\n" ${comps[*]} |
-       sort |
        xargs -I '{}' -P $paraller_jobs -n 1 bash -c "'{}' \"$OPTS\" ||
                echo 1 >> $top_builddir/tests/failures"
-----



#### ultest.bash ###
## Attention, using sudo"

i=0
while true; do
    echo -e "\n#### run test loop: $((++i)) ####\n"

    ## select any interesting subset of all tests and shuffle
    mytests=$(git grep -l "^ts_skip_nonroot$" -- tests/ts/*/ \
                | sort --random-sort | sed "s@tests/ts/@@")
    test -n "$mytests" || { echo "empty tests!?"; break; }

    time sudo ./tests/run.sh --parallel=30 --exclude="some-bad-tests" $mytests \
        || break
done

echo -e "\n#### bad run: $i ####\n"

###############


cu,
Rudi

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-03-09 22:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-09 14:47 debug parallel root checks Ruediger Meier
2018-03-09 15:06 ` Ruediger Meier
2018-03-09 21:46   ` Karel Zak
2018-03-09 22:16     ` Ruediger Meier
2018-03-09 21:48   ` Karel Zak
2018-03-09 22:28     ` Ruediger Meier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox