Skip to content

Commit aa14089

Browse files
authored
Update MacOS.yml to use gnu-sed (#471)
1 parent 61c7aec commit aa14089

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/MacOS.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ jobs:
444444
brew upgrade --force
445445
brew install eigen
446446
brew install boost
447+
brew install gnu-sed
447448
pip install distro pytest
448449
449450
@@ -580,14 +581,14 @@ jobs:
580581
echo ::group::Crashing Test Logs
581582
# See if we don't have a crash that went away
582583
# Comment out all xfails but the ones that have a run=False condition.
583-
find . -name "*.py" -exec sed -i '/run=False/!s/^ *@mark.xfail\(.*\)/#&/' {} \;
584+
find . -name "*.py" -exec gsed -i '/run=False/!s/^ *@mark.xfail\(.*\)/#&/' {} \;
584585
python -m pytest -n 1 -m "xfail" --runxfail -sv -ra --max-worker-restart 512 | tee test_crashed.log 2>&1 || true
585586
git checkout .
586587
echo ::endgroup::
587588
echo ::group::XFAIL Test Logs
588589
# Rewrite all xfails that have a run clause to skipif. This way we will
589590
# avoid conditionally crashing xfails
590-
find . -name "*.py" -exec sed -i -E 's/(^ *)@mark.xfail\(run=(.*)/\[email protected](condition=not \2/g' {} \;
591+
find . -name "*.py" -exec gsed -i -E 's/(^ *)@mark.xfail\(run=(.*)/\[email protected](condition=not \2/g' {} \;
591592
# See if we don't have an xfail that went away
592593
python -m pytest --runxfail -sv -ra | tee test_xfailed.log 2>&1 || true
593594
git checkout .

0 commit comments

Comments
 (0)