From c7092a1c4d87eddff42ec78308c64a4b20f1f3cc Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 24 Mar 2020 10:50:22 -0400 Subject: [PATCH] ci: when merging files, keep one header row When merging files, make sure to remove header rows from each file and just keep one header. This will stop us from parsing header rows as tests. Signed-off-by: Anas Nashif --- scripts/ci/run_ci.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/ci/run_ci.sh b/scripts/ci/run_ci.sh index d79f974e957..59c373ff085 100755 --- a/scripts/ci/run_ci.sh +++ b/scripts/ci/run_ci.sh @@ -251,7 +251,12 @@ if [ -n "$main_ci" ]; then # Save list of tests to be run ${sanitycheck} ${sanitycheck_options} --save-tests test_file_3.txt || exit 1 - cat test_file_1.txt test_file_2.txt test_file_3.txt > test_file.txt + + # Remove headers from all files but the first one to generate one + # single file with only one header row + tail -n +2 test_file_2.txt > test_file_2_in.txt + tail -n +2 test_file_1.txt > test_file_1_in.txt + cat test_file_3.txt test_file_2_in.txt test_file_1_in.txt > test_file.txt # Run a subset of tests based on matrix size ${sanitycheck} ${sanitycheck_options} --load-tests test_file.txt \