|
9 | 9 | speedtest_copy_path = os.path.join("tests", "python", "speedtest2.py")
|
10 | 10 | shutil.copyfile(speedtest_src_path, speedtest_copy_path) # the file has to be outside of git
|
11 | 11 |
|
12 |
| -commits = list(Repository('.', from_tag="v0.6.2").traverse_commits()) |
| 12 | +commits = list(Repository('.', from_tag="v0.7.0").traverse_commits()) |
13 | 13 | print("Found commits:")
|
14 | 14 | for idx, commit in enumerate(commits):
|
15 | 15 | name = commit.msg.replace('\n', ' ').replace('\r', ' ')
|
16 | 16 | print(idx, commit.hash, name)
|
17 | 17 |
|
18 | 18 | for commit in commits:
|
19 |
| - name = commit.msg.replace('\n', ' ').replace('\r', ' ').replace(",", ";") |
| 19 | + commit_time = commit.author_date.strftime("%Y-%m-%d %H:%M:%S") |
| 20 | + author_name = commit.author.name |
| 21 | + name = "auth:"+author_name+"_"+commit_time+"_msg:"+commit.msg.replace('\n', ' ').replace('\r', ' ').replace(",", ";") |
20 | 22 | print("\nProcessing", commit.hash, name)
|
21 |
| - |
| 23 | + |
22 | 24 | if os.path.exists("build"):
|
23 | 25 | shutil.rmtree("build")
|
24 | 26 | os.system(f"git checkout {commit.hash}")
|
|
43 | 45 | print("build failed!!!!")
|
44 | 46 | continue
|
45 | 47 |
|
46 |
| - # os.system(f'python {speedtest_copy_path} -n "{hash[:4]}_{name}" -d 32 -t 1') |
| 48 | + |
47 | 49 | os.system(f'python {speedtest_copy_path} -n "{commit.hash[:4]}_{name}" -d 16 -t 1')
|
48 | 50 | os.system(f'python {speedtest_copy_path} -n "{commit.hash[:4]}_{name}" -d 16 -t 64')
|
49 |
| - # os.system(f'python {speedtest_copy_path} -n "{name}" -d 64 -t 1') |
50 |
| - # os.system(f'python {speedtest_copy_path} -n "{name}" -d 128 -t 1') |
51 |
| - # os.system(f'python {speedtest_copy_path} -n "{name}" -d 4 -t 24') |
52 |
| - # os.system(f'python {speedtest_copy_path} -n "{name}" -d 128 -t 24') |
| 51 | + os.system(f'python {speedtest_copy_path} -n "{commit.hash[:4]}_{name}" -d 4 -t 1') |
| 52 | + os.system(f'python {speedtest_copy_path} -n "{commit.hash[:4]}_{name}" -d 4 -t 64') |
| 53 | + os.system(f'python {speedtest_copy_path} -n "{commit.hash[:4]}_{name}" -d 128 -t 1') |
| 54 | + os.system(f'python {speedtest_copy_path} -n "{commit.hash[:4]}_{name}" -d 128 -t 64') |
| 55 | + |
0 commit comments