You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Motivation:
On MacOS, `system-tests` fail to build with this error:
```
[INFO] --- exec:3.1.0:exec (populate) @ system-test ---
sed: 1: "s:subject= *\+/\?:/:;s: ...": RE error: repetition-operator operand invalid
```
It would seem that MacOS `sed` does not recognize an escape before `+`
as meaning a literal '+'.
```
alberts-mbp:certs arossi$ sed 's:subject= *\+/\?:/:;s:, :/:g'
sed: 1: "s:subject= *\+/\?:/:;s: ...": RE error: repetition-operator operand invalid
```
See:
https://unix.stackexchange.com/questions/229476/getting-re-error-repetition-operator-operand-invalid-on-osx-sed
Modification:
This expression occurs twice in the `populate` script.
Changing to:
` sed -E -e 's:subject= */?:/:;s:, :/:g;s: = :=:g'` fixes it
on MacOS. Linux also seems to accept that syntax as well.
This has been factored out into a function.
Result:
MacOS runs `system-test` again.
Target: master
Request: 9.1
Request: 9.0
Request: 8.2
Requires-notes: yes
Patch: https://rb.dcache.org/r/14100/
Acked-by: Paul
Acked-by: Dmitry
0 commit comments