Merge "Added karaf alias, greeting message and restored shell output (disabled pty)"
[integration/test.git] / test / tools / odl-mdsal-clustering-tests / clustering-performance-test / create_plot_data_files.py
1 #!/usr/bin/python
2
3 text_file = open("out.log.txt", "r")
4 log = text_file.read()
5 text_file.close()
6
7 data = []
8
9 for line in log.splitlines():
10     if 'Total success rate: ' in line:
11         ll = line.split(',')
12         data.append(ll[0][24:])
13 print data
14
15 text_file = open("rates.csv", "w")
16 text_file.write('Add,Delete\n')
17 text_file.write('{0},{1}\n'.format(data[0], data[1]))
18 text_file.close()