java miner test cases

This commit is contained in:
fixminer
2020-04-11 20:54:48 +02:00
parent d9620acef6
commit e25310a882
78 changed files with 29923 additions and 644 deletions
+16 -16
View File
@@ -178,22 +178,22 @@ def getRun():
# def shellCallTemplate(cmd,enc='utf-8'):
# process = subprocess.Popen(cmd,
# stdout=subprocess.PIPE,stderr=PIPE, shell=True,encoding=enc,
# universal_newlines=True)
#
# while True:
# output = process.stdout.readline()
# print(output.strip())
# # Do something else
# return_code = process.poll()
# if return_code is not None:
# print('RETURN CODE', return_code)
# # Process has finished, read rest of the output
# for output in process.stdout.readlines():
# print(output.strip())
# break
def shellCallTemplate4jar(cmd,enc='utf-8'):
process = subprocess.Popen(cmd,
stdout=subprocess.PIPE,stderr=PIPE, shell=True,encoding=enc,
universal_newlines=True)
while True:
output = process.stdout.readline()
print(output.strip())
# Do something else
return_code = process.poll()
if return_code is not None:
print('RETURN CODE', return_code)
# Process has finished, read rest of the output
for output in process.stdout.readlines():
print(output.strip())
break
def shellCallTemplate(cmd,enc='utf-8'):
try: