From bd32544c00d0274e0741ea3a2ec19ebc8188b16b Mon Sep 17 00:00:00 2001 From: Laura Loghin Date: Mon, 27 Jul 2020 15:33:56 +0300 Subject: [PATCH] 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 --- integration_tests/test_benchmark.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/integration_tests/test_benchmark.py b/integration_tests/test_benchmark.py index e539564..41e432a 100644 --- a/integration_tests/test_benchmark.py +++ b/integration_tests/test_benchmark.py @@ -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