lit: Hardcode whence seek value, os.SEEK_END isn't always available.
[oota-llvm.git] / utils / lit / TestRunner.py
index 003bcc8e3066fa4b29e6622ccadd1ec2acc727a4..5b4538f7d291cb201008729ed0022536f439062e 100644 (file)
@@ -114,7 +114,7 @@ def executeShCmd(cmd, cfg, cwd, results):
                         r[2] = open(r[0], r[1])
                     # Workaround a Win32 and/or subprocess bug when appending.
                     if r[1] == 'a':
-                        r[2].seek(0, os.SEEK_END)
+                        r[2].seek(0, 2)
                 result = r[2]
             final_redirects.append(result)