Skip to content

Commit 410aa2d

Browse files
committed
git-ci: Fix some problems in CI scripts
1 parent 05b3007 commit 410aa2d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.ci/build_and_test_world

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ stage() {
2424
}
2525

2626
# Dump logs on exit unless interactive
27-
[ "$1" = "-i" -o -z "$DESKTOP_SESSION" ]|| trap .ci/collect_logs EXIT
27+
[ "$1" = "-i" -o -n "$DESKTOP_SESSION" ]|| trap .ci/collect_logs EXIT
2828
set -e
2929
stage configure
3030
./configure --enable-tap-tests --enable-debug --enable-cassert --enable-nls \

.ci/collect_logs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ for f in cores:
2323
gdb=subprocess.Popen(["gdb","src/backend/postgres",f],
2424
stderr=subprocess.PIPE,stdout=subprocess.PIPE,stdin=subprocess.PIPE)
2525
out,err=gdb.communicate("bt\nq\n")
26-
if err.index("core file may not match specified")>=0:
26+
if err.find("core file may not match specified")>=0:
2727
m=re.search("Core was generated by `(.*)'",out)
2828
if m:
2929
gdb=subprocess.Popen(["gdb",m.group(1),f],

0 commit comments

Comments
 (0)