huskies: merge 492_story_remove_filesystem_pipeline_state_and_store_story_content_in_database
This commit is contained in:
@@ -7,7 +7,10 @@ use std::path::Path;
|
||||
/// Write a work-item file into the standard pipeline directory structure.
|
||||
///
|
||||
/// Creates `.huskies/work/{stage}/{filename}` under `root`, creating any
|
||||
/// missing parent directories.
|
||||
/// missing parent directories. Also writes to the global content store so
|
||||
/// that code paths that prefer the content store over the filesystem (e.g.
|
||||
/// `unblock_by_number`) see this test's content rather than a stale entry
|
||||
/// left by a parallel test with the same numeric prefix.
|
||||
pub(crate) fn write_story_file(root: &Path, stage: &str, filename: &str, content: &str) {
|
||||
let dir = root.join(".huskies/work").join(stage);
|
||||
std::fs::create_dir_all(&dir).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user