diff options
author | Vratko Polak <vrpolak@cisco.com> | 2020-01-21 12:47:46 +0100 |
---|---|---|
committer | Vratko Polak <vrpolak@cisco.com> | 2020-01-22 11:37:45 +0000 |
commit | 774d8a344d8c2610199aea5758e81b29535fc1f8 (patch) | |
tree | a8e1569da665f1006dd442c751c528e1f7d60133 /resources/libraries/bash/function | |
parent | 8aa83d922392c488df80cc1c490c0715b94aa250 (diff) |
Generate tests in deterministic order
Change-Id: I47e45f395976fd65a8da0e93bc33588cc213c79e
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'resources/libraries/bash/function')
-rw-r--r-- | resources/libraries/bash/function/common.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/libraries/bash/function/common.sh b/resources/libraries/bash/function/common.sh index d191e783d4..38ba60116a 100644 --- a/resources/libraries/bash/function/common.sh +++ b/resources/libraries/bash/function/common.sh @@ -411,7 +411,8 @@ function generate_tests () { cp -r "${CSIT_DIR}/tests" "${GENERATED_DIR}/tests" || die cmd_line=("find" "${GENERATED_DIR}/tests" "-type" "f") cmd_line+=("-executable" "-name" "*.py") - file_list=$("${cmd_line[@]}") || die + # We sort the directories, so log output can be compared between runs. + file_list=$("${cmd_line[@]}" | sort) || die for gen in ${file_list}; do directory="$(dirname "${gen}")" || die |