Page MenuHomeFreeBSD

sh: nullify ENV in tests
ClosedPublic

Authored by pstef on Jul 21 2022, 6:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 13, 8:40 AM
Unknown Object (File)
Tue, Nov 12, 9:24 PM
Unknown Object (File)
Tue, Nov 12, 8:12 PM
Unknown Object (File)
Tue, Nov 12, 12:10 PM
Unknown Object (File)
Mon, Nov 11, 7:49 AM
Unknown Object (File)
Sun, Nov 10, 2:16 PM
Unknown Object (File)
Sat, Nov 9, 10:46 PM
Unknown Object (File)
Sat, Nov 9, 9:22 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.