Skip to content

Commit a6e1880

Browse files
committed
get the realpath of python: fixes unit test during PR tests
1 parent 4e7df6b commit a6e1880

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Utilities/ReleaseScripts/test/gdb/test-gdb-python.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash -ex
22
gdb_python=$(gdb -q -ex 'python exec("import sys;print(sys.executable)")' -ex quit)
3-
cmssw_python=$(scram tool tag python3 PYTHON3_BASE)/bin/python
3+
cmssw_python=$(scram tool tag python3 PYTHON3_BASE)/bin
4+
cmssw_python=$(realpath ${cmssw_python})/python
45
if [ "${gdb_python}" != "${cmssw_python}" ] ; then
56
echo "python used by GDB and CMSSW are not same"
67
exit 1

0 commit comments

Comments
 (0)