If the '--timeoutfactor FACTOR' flag is present, set TIMEOUTFACTOR on
the remote machine to the specified FACTOR.
+If the '--glibctunables VALUE' flag is present, set GLIBC_TUNABLES on
+the remote machine to the specified VALUE.
+
If the '--allow-time-setting' flag is present, set
GLIBC_TEST_ALLOW_TIME_SETTING on the remote machine to indicate that
time can be safely adjusted (e.g. on a virtual machine).
ssh='ssh'
timeoutfactor=$TIMEOUTFACTOR
+glibctunables=$GLIBC_TUNABLES
while [ $# -gt 0 ]; do
case "$1" in
timeoutfactor="$1"
;;
+ "--glibctunables")
+ shift
+ if [ $# -lt 1 ]; then
+ break
+ fi
+ glibctunables="$1"
+ ;;
+
"--allow-time-setting")
settimeallowed="1"
;;
${command}"
fi
+# Add command to set glibc tunables, if required.
+if [ "$glibctunables" ]; then
+ command="export GLIBC_TUNABLES=$(bourne_quote "$glibctunables")
+${command}"
+fi
+
# Add command to set the info that time on target can be adjusted,
# if required.
# Serialize execution of this script on target to prevent from unintended