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 <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2020-03-24 10:50:22 -04:00
commit c7092a1c4d

View file

@ -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 \