From: Thomas Petazzoni Date: Sun, 29 Oct 2017 17:14:37 +0000 (+0100) Subject: test-pkg: filter empty lines and comments in CSV file X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9272eb468463deff3a3b181db0372e64b51affc1;p=buildroot.git 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 Reviewed-by: "Yann E. MORIN" Signed-off-by: Thomas Petazzoni --- 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