diff options
-rw-r--r-- | pbuilder-modules | 2 | ||||
-rwxr-xr-x | test_pbuilder-modules | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/pbuilder-modules b/pbuilder-modules index 22eaafe..9b9cca0 100644 --- a/pbuilder-modules +++ b/pbuilder-modules @@ -576,7 +576,7 @@ function conditional_cp_a() { if [ "${parent_dir}" != "${target_dir}" ]; then "$cp" -a "$source_file" "$target_dir" else - echo "I: file ${source_file} is already in target, not copying." + log "I: file ${source_file} is already in target, not copying." fi } diff --git a/test_pbuilder-modules b/test_pbuilder-modules index ffd8b3e..d010c98 100755 --- a/test_pbuilder-modules +++ b/test_pbuilder-modules @@ -32,7 +32,8 @@ function test_conditional_cp_a() { conditional_cp_a "hoge" "${outdir}" echo ) } -expect_output "" test_conditional_cp_a +expect_output "I: file hoge is already in target, not copying." \ + test_conditional_cp_a # test the copy case. function test_conditional_cp_a_copy() { |