From 1843d7f56d682003b09189c142899b2550427a28 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 5 Sep 2011 14:27:35 -0700 Subject: [PATCH] tests/emerge: test directory with latin-1 enc --- pym/portage/tests/emerge/test_simple.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pym/portage/tests/emerge/test_simple.py b/pym/portage/tests/emerge/test_simple.py index 1afa04750..00c395d01 100644 --- a/pym/portage/tests/emerge/test_simple.py +++ b/pym/portage/tests/emerge/test_simple.py @@ -33,8 +33,10 @@ src_install() { # some conditions. TODO: Find out why it transforms to \\xef\\xbf\\xbd when # running tests for Python 3.2 (even though it's bash that is ultimately # responsible for performing the transformation). - echo "blah blah blah" > "${ED}"/usr/lib/${P}/latin-1-$(printf "\\xa9")-regular-file || die - ln -s latin-1-$(printf "\\xa9")-regular-file "${ED}"/usr/lib/${P}/latin-1-$(printf "\\xa9")-symlink || die + local latin_1_dir=${ED}/usr/lib/${P}/latin-1-$(printf "\\xa9")-directory + mkdir "${latin_1_dir}" + echo "blah blah blah" > ${latin_1_dir}/latin-1-$(printf "\\xa9")-regular-file || die + ln -s latin-1-$(printf "\\xa9")-regular-file ${latin_1_dir}/latin-1-$(printf "\\xa9")-symlink || die } """ -- 2.26.2