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 <tom.hromatka@oracle.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
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
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