@@ -1044,6 +1044,39 @@ def run_io_adaptor_tests(meta, allocator, endpoints, test_args):
10441044 )
10451045
10461046
1047+ def run_stream_test (meta , allocator , endpoints , test_args ):
1048+ meta_prefix = 'vineyard_test_%s' % time .time ()
1049+ metadata_settings = make_metadata_settings (meta , endpoints , meta_prefix )
1050+
1051+ with start_vineyardd (
1052+ metadata_settings ,
1053+ ['--allocator' , allocator ],
1054+ default_ipc_socket = VINEYARD_CI_IPC_SOCKET ,
1055+ ) as (_ , rpc_socket_port ):
1056+ start_time = time .time ()
1057+ subprocess .check_call (
1058+ [
1059+ 'pytest' ,
1060+ '-s' ,
1061+ '-vvv' ,
1062+ '--exitfirst' ,
1063+ '--durations=0' ,
1064+ '--log-cli-level' ,
1065+ 'DEBUG' ,
1066+ 'python/vineyard/io/tests' ,
1067+ * test_args ,
1068+ '--vineyard-ipc-socket=%s' % VINEYARD_CI_IPC_SOCKET ,
1069+ '--vineyard-endpoint=localhost:%s' % rpc_socket_port ,
1070+ ],
1071+ cwd = os .path .join (os .path .dirname (os .path .abspath (__file__ )), '..' ),
1072+ )
1073+ print (
1074+ 'running python stream %s tests use %s seconds'
1075+ % (time .time () - start_time ),
1076+ flush = True ,
1077+ )
1078+
1079+
10471080def run_fuse_test (meta , allocator , endpoints , test_args ):
10481081 meta_prefix = 'vineyard_test_%s' % time .time ()
10491082 metadata_settings = make_metadata_settings (meta , endpoints , meta_prefix )
@@ -1257,6 +1290,7 @@ def execute_tests(args):
12571290
12581291 if args .with_io :
12591292 run_io_adaptor_tests (args .meta , args .allocator , endpoints , python_test_args )
1293+ run_stream_test (args .meta , args .allocator , endpoints , python_test_args )
12601294
12611295 if args .with_fuse :
12621296 run_fuse_test (args .meta , args .allocator , endpoints , python_test_args )
0 commit comments