aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Roxell <anders.roxell@linaro.org>2022-12-07 10:12:07 +0100
committernareshkamboju <naresh.kamboju@gmail.com>2022-12-07 19:57:05 +0530
commit0466d2cd3db9ce6a263f5454fc4cde46e021da02 (patch)
tree007ab883731ded4593dc507a40a295069f1f650e
parentcd98a60e0709878721c1b733bdd2bf06f32171b9 (diff)
ltp: sharding: remove the tmp file before creation
When running multiple tests in different test sections in the LAVA job definition file, the alltests file was only adding more and more tests to the file. Which lead to that the first tests that was added was running in all the following tests as well. Ensuring to delete the 'alltests' file before generating the file, will fix the problem of running the same set of tests in the following test runs. Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
-rwxr-xr-xautomated/linux/ltp/ltp.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/automated/linux/ltp/ltp.sh b/automated/linux/ltp/ltp.sh
index 36bef556..b2f9cec4 100755
--- a/automated/linux/ltp/ltp.sh
+++ b/automated/linux/ltp/ltp.sh
@@ -183,6 +183,7 @@ run_ltp() {
# Cleanup
# don't fail the whole test job if rm fails
rm -rf "${LTP_TMPDIR}" || true
+ rm -rf alltests || true
}
# Prepare system