Skip to content

The build_dmrpp tests are failing on OSX #1219

@ndp-opendap

Description

@ndp-opendap

Tests in bes/modules/dmrpp_module/tests_build_dmrpp are failing on my OS-X system because the sed expression used to REMOVE_VERSIONS is not compatible with the BSD derived sed on OS-X.

Here is the linux version:

      sed -e 's@<Value>[[0-9]]*\.[[0-9]]*\.[[0-9]]*</Value>@<Value>removed version</Value>@g' \
      -e 's@<Value>[[A-z_.]]*-[[0-9]]*\.[[0-9]]*\.[[0-9]]*(-[[0-9]]*)?<\/Value>@<Value>removed version<\/Value>@g' \
      -e 's@dmrpp:version="[[0-9]]*\.[[0-9]]*\.[[0-9]]*"@removed dmrpp:version@g' \

Here is a possible OS-X version:

    sed -E \
    -e 's@<Value>[0-9]+\.[0-9]+\.[0-9]+</Value>@<Value>removed version</Value>@g' \
    -e 's@<Value>[a-zA-Z._]+-[0-9]+\.[0-9]+\.[0-9]+(-[0-9]+)?</Value>@<Value>removed version</Value>@g' \
    -e 's@dmrpp:version="[0-9]+\.[0-9]+\.[0-9]+"@removed dmrpp:version@g' \

Investigate and fix as needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions