run_remote_tests.sh: create latest temp dir link upfront
With this change, the /tmp/run_remote_tests.latest softlink is created
at the beginning of the execution, right after the mktemp call. This
makes it easier for users to track logs as the script is executing,
simply referring to the above softlink. Note that:
* We don't create a softlink when --results_dir_root is used; the user
evidently provided an explicit directory name, so there's no point in
creating/updating the latest softlink.
* The latest softlink is removed when --cleanup is used. This generally
makes sense, but differs from previous logic in that a preexisting
latest softlink will be overridden regardless. This too sounds like
a reasonable thing to expect.
TEST=Latest softlink generated as expected.
Reviewed-by: Chris Sosa <firstname.lastname@example.org>
Commit-Ready: Gilad Arnold <email@example.com>
Tested-by: Gilad Arnold <firstname.lastname@example.org>
1 file changed