Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7e1c6f1

Browse files
committed
Fix python regression testing script to bail out early if language
creation fails ... no point in running the tests.
1 parent00aa8ed commit7e1c6f1

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

‎src/pl/plpython/test.sh

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,24 @@ DBNAME=pltest
44

55
echo -n"*** Destroy$DBNAME."
66
dropdb$DBNAME> test.log2>&1
7+
# drop failure is ok...
78
echo" Done. ***"
89

910
echo -n"*** Create$DBNAME."
10-
createdb$DBNAME>> test.log2>&1
11-
echo" Done. ***"
11+
if createdb$DBNAME>> test.log2>&1;then
12+
echo" Done. ***"
13+
else
14+
echo" Failed! See test.log. ***"
15+
exit 1
16+
fi
1217

1318
echo -n"*** Create plpython."
14-
createlang plpythonu$DBNAME>> test.log2>&1
15-
echo" Done. ***"
19+
if createlang plpythonu$DBNAME>> test.log2>&1;then
20+
echo" Done. ***"
21+
else
22+
echo" Failed! See test.log. ***"
23+
exit 1
24+
fi
1625

1726
echo -n"*** Create tables"
1827
psql -q$DBNAME< plpython_schema.sql>> test.log2>&1

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp