diff options
author | Ezinwa Okpoechi <brainmaestro@outlook.com> | 2018-05-24 12:06:02 +0200 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2018-05-24 19:10:24 +0200 |
commit | 2ce865516797c4b8dd52873f224050aff34ef6ee (patch) | |
tree | 27df0a00b7cbb8ace0190e0abdf10726366f56eb /tests | |
parent | a452467e064a7a5be5bc1a4ba7eeb88219dd50b1 (diff) |
Build bat before generating snapshots
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/snapshots/generate_snapshots.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/snapshots/generate_snapshots.py b/tests/snapshots/generate_snapshots.py index 2859f27a..6d25f0f1 100755 --- a/tests/snapshots/generate_snapshots.py +++ b/tests/snapshots/generate_snapshots.py @@ -22,6 +22,10 @@ def generate_snapshot(option): print("generating snapshot for {}".format(option)) subprocess.call(command, shell=True) +def build_bat(): + print("building bat") + subprocess.call("cargo build", cwd="../..", shell=True) + def prepare_output_dir(): shutil.rmtree("output", ignore_errors=True) pathlib.Path("output").mkdir() @@ -34,6 +38,7 @@ def undo_sample_file_modification(): print("undoing sample.rs modifications") subprocess.call("git checkout -- sample.rs", shell=True) +build_bat() prepare_output_dir() modify_sample_file() generate_snapshots() |