Page MenuHomeFreeBSD

sh: nullify ENV in tests
ClosedPublic

Authored by pstef on Jul 21 2022, 6:45 PM.
Tags
None
Referenced Files
F86679458: D35876.id.diff
Sun, Jun 23, 9:47 PM
Unknown Object (File)
Sat, Jun 22, 11:22 AM
Unknown Object (File)
May 13 2024, 6:21 PM
Unknown Object (File)
Apr 26 2024, 5:30 PM
Unknown Object (File)
Apr 26 2024, 2:09 AM
Unknown Object (File)
Apr 26 2024, 2:09 AM
Unknown Object (File)
Apr 26 2024, 2:09 AM
Unknown Object (File)
Apr 25 2024, 8:04 PM
Subscribers

Details

Summary

This is to avoid loading .shrc which may contain commands that would result in output different than expected.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

pstef requested review of this revision.Jul 21 2022, 6:45 PM

Thanks, I have also encountered this issue.

Perhaps this approach, adding ENV= before $SH -i uses in test scripts, is best since it supports running single test scripts without any wrapping. There are not that many test scripts that use interactive mode.

This revision is now accepted and ready to land.Jul 22 2022, 8:47 AM
This revision was automatically updated to reflect the committed changes.