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:
parent
923b3bf0ae
commit
c7092a1c4d
1 changed files with 6 additions and 1 deletions
|
@ -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 \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue