fix artifact names, allow to run quick test with a given input list

This commit is contained in:
Trung Nguyen
2024-10-14 09:43:08 -05:00
parent 383ae086e5
commit 3e7642bc8c
2 changed files with 10 additions and 1 deletions

View File

@ -86,6 +86,7 @@ jobs:
--lmp-bin=build/lmp \ --lmp-bin=build/lmp \
--config-file=tools/regression-tests/config_kokkos_openmp.yaml \ --config-file=tools/regression-tests/config_kokkos_openmp.yaml \
--list-input=input-list-pair-kk.txt \ --list-input=input-list-pair-kk.txt \
--quick --quick-max=100 \
--output-file=output-pair.xml \ --output-file=output-pair.xml \
--progress-file=progress-pair.yaml \ --progress-file=progress-pair.yaml \
--log-file=run-pair.log \ --log-file=run-pair.log \
@ -97,6 +98,6 @@ jobs:
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: kokkos-regression-test-artifact name: kokkos-regression-test-artifact
path: kokkos-regression-test.tar path: kokkos-regression-test*.tar

View File

@ -1370,6 +1370,14 @@ if __name__ == "__main__":
example_inputs.append(input) example_inputs.append(input)
num_inputscripts += 1 num_inputscripts += 1
# allow to select randomly some input scripts at this point if quick is set to be True
if quick:
if len(example_inputs) > quick_max:
example_inputs = random.sample(example_inputs, quick_max)
msg = "\nTesting " + str(quick_max) + " randomly selected inputs"
print(msg)
logger.info(msg)
example_subfolders = folder_list example_subfolders = folder_list
msg = f"\nThere are {num_inputscripts} input scripts listed in {list_input}." msg = f"\nThere are {num_inputscripts} input scripts listed in {list_input}."
print(msg) print(msg)