Commit 4b84b1ff authored by Julien Muchembled's avatar Julien Muchembled

randomsleep: cleanup

parent eb4fc00a
...@@ -12,10 +12,10 @@ bash_script_code = ...@@ -12,10 +12,10 @@ bash_script_code =
echo "usage: randomsleep maxseconds" echo "usage: randomsleep maxseconds"
exit exit
fi fi
${coreutils:location}/bin/sleep $((RANDOM % $1)).$((RANDOM % 100)) exec ${coreutils:location}/bin/sleep $((RANDOM * $1 >> 15)).$((RANDOM * 100 >> 15))
wrapper_script_code = wrapper_script_code =
#!${bash:location}/bin/bash #!${bash:location}/bin/bash
${bash:location}/bin/bash ${:location}/randomsleep.bash "$@" . ${:location}/randomsleep.bash
script = script =
os.makedirs(self.options['location']) os.makedirs(self.options['location'])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment