gpdb icon indicating copy to clipboard operation
gpdb copied to clipboard

Failed to run test case

Open darionyaphet opened this issue 2 years ago • 1 comments

Bug Report

Greenplum version or build

build from source code on master branch

OS version and uname -a

Linux localhost.localdomain 3.10.0-1160.15.2.el7.x86_64 #1 SMP Wed Feb 3 15:06:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

autoconf options used ( config.status --config )

'--with-perl' '--with-python' '--with-libxml' '--with-gssapi' '--prefix=/usr/local/gpdb' '--disable-orca' '--enable-debug' '--enable-cassert' 'CFLAGS=-O0' 'PKG_CONFIG_PATH=...'

Installation information ( pg_config )

BINDIR = /usr/local/gpdb/bin
DOCDIR = /usr/local/gpdb/share/doc/postgresql
HTMLDIR = /usr/local/gpdb/share/doc/postgresql
INCLUDEDIR = /usr/local/gpdb/include
PKGINCLUDEDIR = /usr/local/gpdb/include/postgresql
INCLUDEDIR-SERVER = /usr/local/gpdb/include/postgresql/server
LIBDIR = /usr/local/gpdb/lib
PKGLIBDIR = /usr/local/gpdb/lib/postgresql
LOCALEDIR = /usr/local/gpdb/share/locale
MANDIR = /usr/local/gpdb/share/man
SHAREDIR = /usr/local/gpdb/share/postgresql
SYSCONFDIR = /usr/local/gpdb/etc/postgresql
PGXS = /usr/local/gpdb/lib/postgresql/pgxs/src/makefiles/pgxs.mk
CONFIGURE = '--with-perl' '--with-python' '--with-libxml' '--with-gssapi' '--prefix=/usr/local/gpdb' '--disable-orca' '--enable-debug' '--enable-cassert' 'CFLAGS=-O0' 'PKG_CONFIG_PATH=...'
CC = gcc
CPPFLAGS = -D_GNU_SOURCE -I/usr/include/libxml2
CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-unused-but-set-variable -Werror=implicit-fallthrough=3 -Wno-format-truncation -g -O0  -Werror=uninitialized -Werror=implicit-function-declaration
CFLAGS_SL = -fPIC
LDFLAGS = -Wl,--as-needed -Wl,-rpath,'/usr/local/gpdb/lib',--enable-new-dtags
LDFLAGS_EX =
LDFLAGS_SL =
LIBS = -lpgcommon -lpgport -lpthread -lbz2 -lxml2 -lrt -lgssapi_krb5 -lz -lreadline -lrt -lcrypt -ldl -lm  -lcurl   -lzstd
VERSION = PostgreSQL 12beta2

Expected behavior

running test case: make installcheck-world

testQuery00 (__main__.GPLoad_Env_TestCase)
0  gpload setup ... ok
testQuery01 (__main__.GPLoad_Env_TestCase)
1  get username from environment variable 'USER' ... ok
testQuery02 (__main__.GPLoad_Env_TestCase)
2  get username from environment variable 'PGUSER' ... ok
testQuery03 (__main__.GPLoad_Env_TestCase)
3  get username, host and port from environment ... ok
testQuery04 (__main__.GPLoad_Env_TestCase)
4  specify port, user and hostname ... ok
testQuery05 (__main__.GPLoad_Env_TestCase)
5  only specify port ... ok

----------------------------------------------------------------------
Ran 6 tests in 3.316s

OK
Usage: pytest [OPTIONS] [testfile [testpattern]]

examples:

pytest path/to/mytests.py
pytest path/to/mytests.py TheseTests
pytest path/to/mytests.py TheseTests.test_thisone
pytest path/to/mytests.py -m '(not long and database) or regr'

pytest one (will run both test_thisone and test_thatone)
pytest path/to/mytests.py -s not (will skip test_notthisone)

pytest --coverage test_foo.py
  (only if logilab.devtools is available)


pytest: error: only one filename is acceptabletestQuery00 (__main__.GPLoad_Env_TestCase)
0  gpload setup ... ok
testQuery01 (__main__.GPLoad_Env_TestCase)
1  get username from environment variable 'USER' ... ok
testQuery02 (__main__.GPLoad_Env_TestCase)
2  get username from environment variable 'PGUSER' ... ok
testQuery03 (__main__.GPLoad_Env_TestCase)
3  get username, host and port from environment ... ok
testQuery04 (__main__.GPLoad_Env_TestCase)
4  specify port, user and hostname ... ok
testQuery05 (__main__.GPLoad_Env_TestCase)
5  only specify port ... ok

----------------------------------------------------------------------
Ran 6 tests in 3.316s

OK
Usage: pytest [OPTIONS] [testfile [testpattern]]

examples:

pytest path/to/mytests.py
pytest path/to/mytests.py TheseTests
pytest path/to/mytests.py TheseTests.test_thisone
pytest path/to/mytests.py -m '(not long and database) or regr'

pytest one (will run both test_thisone and test_thatone)
pytest path/to/mytests.py -s not (will skip test_notthisone)

pytest --coverage test_foo.py
  (only if logilab.devtools is available)


pytest: error: only one filename is acceptable

Actual behavior

I hope to pass the test cases.

Step to reproduce the behavior

darionyaphet avatar Jul 21 '22 06:07 darionyaphet

Hi, what's your pytest version? Maybe you can try pytest 6.2.2 to do the test. BTW, why do you need to test gpload?

xiaoxiaoHe-E avatar Aug 03 '22 06:08 xiaoxiaoHe-E

Long time no response. Close it.

Feel free to re-open this if needed.

kainwen avatar Feb 05 '23 10:02 kainwen