From: Tom Hromatka Date: Thu, 24 Mar 2022 14:50:01 +0000 (-0600) Subject: ftests: Use a random container name X-Git-Tag: v3.1.0~308^2~2^2~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bba135b37dde19d1faf5e8afd98bfb7c8029282;p=thirdparty%2Flibcgroup.git ftests: Use a random container name Now that we are running github actions against both the libcgroup and libcgroup-tests repos, it's possible that collisions can occur when both repos are running their actions. (Prior to this commit, the default container name, TestLibcg, was being used for both repos.) Use bash's $RANDOM command to generate a random container name for each run. Signed-off-by: Tom Hromatka Reviewed-by: Kamalesh Babulal --- diff --git a/ftests/ftests-nocontainer.sh b/ftests/ftests-nocontainer.sh index 975ccc34..6ac4bdca 100755 --- a/ftests/ftests-nocontainer.sh +++ b/ftests/ftests-nocontainer.sh @@ -14,7 +14,8 @@ if [ -d ../../src/python/build/lib.* ]; then popd fi -./ftests.py -l 10 -L "$START_DIR/ftests-nocontainer.py.log" --no-container +./ftests.py -l 10 -L "$START_DIR/ftests-nocontainer.py.log" --no-container \ + -n Libcg"$RANDOM" RET=$? if [ "$START_DIR" != "$SCRIPT_DIR" ]; then diff --git a/ftests/ftests.sh b/ftests/ftests.sh index f9a42546..25b0ca20 100755 --- a/ftests/ftests.sh +++ b/ftests/ftests.sh @@ -14,7 +14,7 @@ if [ -d ../../src/python/build/lib.* ]; then popd fi -./ftests.py -l 10 -L "$START_DIR/ftests.py.log" +./ftests.py -l 10 -L "$START_DIR/ftests.py.log" -n Libcg"$RANDOM" RET=$? if [ "$START_DIR" != "$SCRIPT_DIR" ]; then