3 # Exercise the pcp-python(1) script.
5 # Copyright (c) 2015 Red Hat.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 which python2
>/dev
/null
2>&1 || _notrun
"No binary named python2 found"
17 which python3
>/dev
/null
2>&1 || _notrun
"No binary named python3 found"
19 status
=1 # failure is the default!
20 $sudo rm -rf $tmp.
* $seq.full
21 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
28 # real QA test starts here
29 echo "Checking switch to python3:"
30 PCP_PYTHON_PROG
=python3
/usr
/bin
/pcp python
--version 2>&1 | _filter_version
31 echo "Checking switch to python2:"
32 PCP_PYTHON_PROG
=python2
/usr
/bin
/pcp python
--version 2>&1 | _filter_version