summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-09-05 14:27:35 -0700
committerZac Medico <zmedico@gentoo.org>2011-09-05 14:27:35 -0700
commit1843d7f56d682003b09189c142899b2550427a28 (patch)
tree452ad651e01b43a90885abc02487b2dced3b472a /pym
parent8539b5778f1cea24aab4ff47b1b65516c254de1f (diff)
downloadportage-1843d7f56d682003b09189c142899b2550427a28.tar.gz
portage-1843d7f56d682003b09189c142899b2550427a28.tar.bz2
portage-1843d7f56d682003b09189c142899b2550427a28.zip
tests/emerge: test directory with latin-1 enc
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/tests/emerge/test_simple.py6
1 files 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
}
"""