Skip to content

Conversation

@nataliakokoromyti
Copy link

Replace sed -i with a more portable approach for prepending the ASAN_OPTIONS export to run-test.mk.

The sed approach with 1i doesn't work reliably on all systems. This uses echo instead, which is more straightforward and works everywhere.

Test suite runs correctly with this change. This is an infrastructure fix with no new tests. To evaluate run existing test suite.

source ../gen-tests-makefile.sh
generate_mk --yosys-scripts --bash
sed -i '1i\export ASAN_OPTIONS=halt_on_error=0' run-test.mk
echo "$(echo 'export ASAN_OPTIONS=halt_on_error=0'; cat run-test.mk)" > run-test.mk
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't remove the newline at the end of the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants