Skip to content

Commit

Permalink
Merge pull request twitter#48 from michalbiesek/fix-python3-issue
Browse files Browse the repository at this point in the history
Fix python3 octal literals handling
  • Loading branch information
michalbiesek authored Jul 18, 2019
2 parents 2b34a3e + 86107dc commit 54755ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/load_testing/client_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def generate_runscript(binary, server_ip, instances):
the_file.write(' --waterfall latency-waterfall-{server_port}.png'.format(server_port=server_port))
the_file.write(' > rpcperf_{server_port}.log'.format(server_port=server_port))
the_file.write(' 2>&1 &\n')
os.chmod(fname, 0777)
os.chmod(fname, 0o777)


if __name__ == "__main__":
Expand Down
4 changes: 2 additions & 2 deletions scripts/load_testing/server_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def generate_runscript(binary, instances):
the_file.write('{binary_file} {config_file}\n'.format(
binary_file=binary,
config_file=config_file))
os.chmod(fname, 0777)
os.chmod(fname, 0o777)

# create warm-up.sh
fname = 'warm-up.sh'
Expand All @@ -107,7 +107,7 @@ def generate_runscript(binary, instances):
sleep 10
done
""".format(instances=instances))
os.chmod(fname, 0777)
os.chmod(fname, 0o777)


if __name__ == "__main__":
Expand Down

0 comments on commit 54755ef

Please sign in to comment.