From 342164d3576edcc55e815ff31c3bf84c864c92b9 Mon Sep 17 00:00:00 2001 From: "andy.boot" Date: Sat, 28 Mar 2020 18:32:40 +0000 Subject: [PATCH] Tests: Add Missing copy command should have been added with previous commit, would occastionaly have caused tests to fail if tests run in random order --- tests/tests.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/tests.rs b/tests/tests.rs index 7adb63f..28f245a 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -138,6 +138,8 @@ fn main_output_long_paths() -> String { #[cfg_attr(target_os = "windows", ignore)] #[test] pub fn test_apparent_size() { + copy_test_data("src/test_dir"); + let mut cmd = Command::cargo_bin("dust").unwrap(); let assert = cmd.arg("-c").arg("-s").arg("src/test_dir").unwrap().stdout; let output = str::from_utf8(&assert).unwrap();