on master help sign in
Build bat before generating snapshots
commit2ce865516797c4b8dd52873f224050aff34ef6ee authorEzinwa Okpoechi <brainmaestro@outlook.com> dateThu 24 May 2018, 12:06 (8 years ago) parenta452467
1 file changed+5
tests/snapshots/generate_snapshots.py+5
tests/snapshots/generate_snapshots.py+5
@@ -22,6 +22,10 @@ def generate_snapshot(option):
2222 print("generating snapshot for {}".format(option))
2323 subprocess.call(command, shell=True)
2424
25+def build_bat():
26+ print("building bat")
27+ subprocess.call("cargo build", cwd="../..", shell=True)
28+
2529def prepare_output_dir():
2630 shutil.rmtree("output", ignore_errors=True)
2731 pathlib.Path("output").mkdir()
@@ -34,6 +38,7 @@ def undo_sample_file_modification():
3438 print("undoing sample.rs modifications")
3539 subprocess.call("git checkout -- sample.rs", shell=True)
3640
41+build_bat()
3742prepare_output_dir()
3843modify_sample_file()
3944generate_snapshots()