SHARE
TWEET

Untitled

a guest Jul 17th, 2017 37 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import os, shlex, subprocess
  2.  
  3. os.chdir("x264")
  4. p = subprocess.Popen(["make", "checkasm"],stdin=subprocess.PIPE,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
  5. p.wait()
  6. for i in range(1):
  7.         p = subprocess.Popen(["./checkasm", "--bench"],stdin=subprocess.PIPE,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
  8.         tmp = p.communicate() #tmp[0] contains timing information
  9.         if tmp[1].find("All tests passed") == -1:
  10.                 seed = tmp[1].split('\n')[0].split(' ')[4]
  11.                 print("Something went wrong. Please report to devs. Failed seed: " + seed)
RAW Paste Data
Top