Fetch origin in benchmark test

Before running `git checkout` on the upstream
master branch, we should also fetch that branch.

Signed-off-by: Laura Loghin <lauralg@amazon.com>
This commit is contained in:
Laura Loghin
2020-07-27 15:33:56 +03:00
committed by Alexandru Agache
parent 35beb918b7
commit bd32544c00

View File

@@ -21,6 +21,10 @@ def test_bench():
_run_cargo_bench("after")
# Move to upstream tip.
subprocess.run(
"git fetch {} {}".format(REMOTE, BRANCH),
shell=True, check=True
)
subprocess.run(
"git checkout {}/{}".format(REMOTE, BRANCH),
shell=True, check=True