You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/03/28 12:39:29 UTC
[GitHub] [incubator-nuttx] yamt opened a new pull request #641:
tools/testbuild.sh: Make blacklist work on macOS
yamt opened a new pull request #641: tools/testbuild.sh: Make blacklist work on macOS
URL: https://github.com/apache/incubator-nuttx/pull/641
I couldn't find where "\b" was documented.
I guess it's a zero-width word boundary or something like that.
Anyway, it doesn't seem to work on macOS.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-nuttx] Ouss4 merged pull request #641:
tools/testbuild.sh: Make blacklist work on macOS
Posted by GitBox <gi...@apache.org>.
Ouss4 merged pull request #641: tools/testbuild.sh: Make blacklist work on macOS
URL: https://github.com/apache/incubator-nuttx/pull/641
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-nuttx] Ouss4 commented on a change in pull request #641:
tools/testbuild.sh: Make blacklist work on macOS
Posted by GitBox <gi...@apache.org>.
Ouss4 commented on a change in pull request #641: tools/testbuild.sh: Make blacklist work on macOS
URL: https://github.com/apache/incubator-nuttx/pull/641#discussion_r399686147
##########
File path: tools/testbuild.sh
##########
@@ -198,8 +198,8 @@ function build {
function dotest {
echo "===================================================================================="
config=`echo $1 | cut -d',' -f1`
- re=\\b${config/\//:}\\b
- if [[ $blacklist =~ $re ]]; then
+ re="-${config/\//:}[[:space:]]"
+ if [[ "${blacklist} " =~ $re ]]; then
echo "Skipping: $1"
Review comment:
You're right, thanks.
if we are only interested in the substring, can we just use grep?
```bash
config=`echo $1 | cut -d',' -f1 | sed -e "s/\//:/g"`
if grep -q "$config" <<< "$blacklist" ; then
# or
# if [[ "$blacklist" == *"$config"* ]]; then
echo "Skipping: $1"
```
Which one do you think is more readable? I'm ready to merge your changes as is if you prefer them.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-nuttx] Ouss4 commented on a change in pull request #641:
tools/testbuild.sh: Make blacklist work on macOS
Posted by GitBox <gi...@apache.org>.
Ouss4 commented on a change in pull request #641: tools/testbuild.sh: Make blacklist work on macOS
URL: https://github.com/apache/incubator-nuttx/pull/641#discussion_r399668324
##########
File path: tools/testbuild.sh
##########
@@ -198,8 +198,8 @@ function build {
function dotest {
echo "===================================================================================="
config=`echo $1 | cut -d',' -f1`
- re=\\b${config/\//:}\\b
- if [[ $blacklist =~ $re ]]; then
+ re="-${config/\//:}[[:space:]]"
+ if [[ "${blacklist} " =~ $re ]]; then
echo "Skipping: $1"
Review comment:
Isn't the test redundant anyway?
`dotest` is called with configs from `testlist` which is the opposite of `blacklist`.
> I couldn't find where "\b" was documented.
How about this one: https://www.rexegg.com/regex-boundaries.html#wordboundary
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-nuttx] yamt commented on a change in pull request #641:
tools/testbuild.sh: Make blacklist work on macOS
Posted by GitBox <gi...@apache.org>.
yamt commented on a change in pull request #641: tools/testbuild.sh: Make blacklist work on macOS
URL: https://github.com/apache/incubator-nuttx/pull/641#discussion_r399670618
##########
File path: tools/testbuild.sh
##########
@@ -198,8 +198,8 @@ function build {
function dotest {
echo "===================================================================================="
config=`echo $1 | cut -d',' -f1`
- re=\\b${config/\//:}\\b
- if [[ $blacklist =~ $re ]]; then
+ re="-${config/\//:}[[:space:]]"
+ if [[ "${blacklist} " =~ $re ]]; then
echo "Skipping: $1"
Review comment:
testlist can contain eg. "/sim" which means all configs under boards/sim.
in that case, blacklist processing here is necessary.
it's used by the CI.
btw, thank you for the link.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [incubator-nuttx] yamt commented on a change in pull request #641:
tools/testbuild.sh: Make blacklist work on macOS
Posted by GitBox <gi...@apache.org>.
yamt commented on a change in pull request #641: tools/testbuild.sh: Make blacklist work on macOS
URL: https://github.com/apache/incubator-nuttx/pull/641#discussion_r399730700
##########
File path: tools/testbuild.sh
##########
@@ -198,8 +198,8 @@ function build {
function dotest {
echo "===================================================================================="
config=`echo $1 | cut -d',' -f1`
- re=\\b${config/\//:}\\b
- if [[ $blacklist =~ $re ]]; then
+ re="-${config/\//:}[[:space:]]"
+ if [[ "${blacklist} " =~ $re ]]; then
echo "Skipping: $1"
Review comment:
i guess a simple grep doesn't work well as a config can be a substring of other configs.
eg. sim:nx and sim:nxffs.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services