def _check_shell_script(self, context):
shell_script = glob.glob(osp.join(context.path, '<STR_LIT>'))[<NUM_LIT:0>]<EOL>mode = os.stat(shell_script).st_mode<EOL>expected_mode = stat.S_IEXEC | stat.S_IRGRP | stat.S_IRUSR<EOL>self.assertEqual(mode & expected_mode, expected_mode)<EOL>environment = self.expected_env[context.benchmark]<EOL>with open(shell_script) as istr:<EOL><INDENT>prelude = self._shell_prelude(**environment)<EOL>script = istr.read()<EOL>if not script.startswith(prelude):<EOL><INDENT>print(script)<EOL>print(prelude)<EOL>self.assertTrue(False)<EOL><DEDENT><DEDENT>
Verify generated shell-script prelude