mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
Fix test
This commit is contained in:
parent
182e30ab61
commit
a2048773e7
@ -2174,9 +2174,9 @@ if args.sip_output:
|
||||
f.write(''.join(output))
|
||||
f.write(''.join(sip_header_footer()))
|
||||
else:
|
||||
print(''.join(sip_header_footer()))
|
||||
print(''.join(output))
|
||||
print(''.join(sip_header_footer()))
|
||||
print(''.join(sip_header_footer()) +
|
||||
''.join(output) +
|
||||
''.join(sip_header_footer()).rstrip())
|
||||
|
||||
if args.python_output and output_python:
|
||||
with open(args.python_output, 'w') as f:
|
||||
|
@ -20,7 +20,7 @@ code=0
|
||||
for root_dir in python python/PyQt6; do
|
||||
|
||||
if [[ $root_dir == "python/PyQt6" ]]; then
|
||||
IS_QT6="--qt6"
|
||||
IS_QT6="-qt6"
|
||||
fi
|
||||
|
||||
for module in "${modules[@]}"; do
|
||||
@ -30,7 +30,7 @@ for root_dir in python python/PyQt6; do
|
||||
if [ ! -f $header ]; then
|
||||
echo "*** Missing header: $header for sipfile $sipfile"
|
||||
else
|
||||
outdiff=$(./scripts/sipify.pl $IS_QT6 -p $root_dir/${module}/auto_additions/${pyfile}.temp $header | diff $root_dir/$sipfile.in -)
|
||||
outdiff=$(./scripts/sipify.py $IS_QT6 -python_output $root_dir/${module}/auto_additions/${pyfile}.temp $header | diff $root_dir/$sipfile.in -)
|
||||
if [[ -n "$outdiff" ]]; then
|
||||
echo " *** SIP file not up to date: $root_dir/$sipfile"
|
||||
echo " $outdiff "
|
||||
|
Loading…
x
Reference in New Issue
Block a user