equal
deleted
inserted
replaced
1088 def _run(self, env): |
1088 def _run(self, env): |
1089 f = open(self.path, 'rb') |
1089 f = open(self.path, 'rb') |
1090 lines = f.readlines() |
1090 lines = f.readlines() |
1091 f.close() |
1091 f.close() |
1092 |
1092 |
|
1093 # .t file is both reference output and the test input, keep reference |
|
1094 # output updated with the the test input. This avoids some race |
|
1095 # conditions where the reference output does not match the actual test. |
|
1096 if self._refout is not None: |
|
1097 self._refout = lines |
|
1098 |
1093 salt, script, after, expected = self._parsetest(lines) |
1099 salt, script, after, expected = self._parsetest(lines) |
1094 |
1100 |
1095 # Write out the generated script. |
1101 # Write out the generated script. |
1096 fname = b'%s.sh' % self._testtmp |
1102 fname = b'%s.sh' % self._testtmp |
1097 f = open(fname, 'wb') |
1103 f = open(fname, 'wb') |