diff options
author | 2017-10-29 18:14:37 +0100 | |
---|---|---|
committer | 2017-11-27 23:24:49 +0100 | |
commit | 9272eb468463deff3a3b181db0372e64b51affc1 (patch) | |
tree | f5a9fffa76db7341685fe047ccf038d4751b7116 /utils | |
parent | c7abd1ddfbdbd7b4e4e426dce7c9d1c82fde1582 (diff) | |
download | buildroot-9272eb468463deff3a3b181db0372e64b51affc1.tar.gz buildroot-9272eb468463deff3a3b181db0372e64b51affc1.tar.bz2 |
test-pkg: filter empty lines and comments in CSV file
In preparation for the addition of comments in the CSV file listing
toolchain configurations, we filter out such lines when reading the
CSV file in utils/test-pkg.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/test-pkg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/test-pkg b/utils/test-pkg index 6899d44f7c..1b7046eac4 100755 --- a/utils/test-pkg +++ b/utils/test-pkg @@ -54,7 +54,7 @@ main() { # Extract the URLs of the toolchains; drop internal toolchains # E.g.: http://server/path/to/name.config,arch,libc # --> http://server/path/to/name.config - toolchains=($(sed -r -e 's/,.*//; /internal/d;' "${toolchains_csv}" \ + toolchains=($(sed -r -e 's/,.*//; /internal/d; /^#/d; /^$/d;' "${toolchains_csv}" \ |if [ ${random} -gt 0 ]; then \ sort -R |head -n ${random} else |