]>
git.proxmox.com Git - ceph.git/blob - ceph/src/ceph-volume/ceph_volume/tests/functional/scripts/test_unicode.sh
3 # Not entirely sure why these executables don't seem to be available in the
4 # $PATH when running from tox. Calling out to `which` seems to fix it, at the
5 # expense of making the script a bit obtuse
10 PYTHON_EXECUTABLE
=`which python`
11 STDERR_FILE
=$
($mktemp)
14 echo "stderr file created: $STDERR_FILE"
16 INVALID
="$INVALID" $PYTHON_EXECUTABLE $1 2> ${STDERR_FILE}
20 if [ $retVal -ne 0 ]; then
21 echo "Failed test: Unexpected failure from running Python script"
22 echo "Below is output of stderr captured:"
27 $grep --quiet "$INVALID" ${STDERR_FILE}
30 if [ $retVal -ne 0 ]; then
31 echo "Failed test: expected to find \"${INVALID}\" character in tmpfile: \"${STDERR_FILE}\""
32 echo "Below is output of stderr captured:"