File tree 1 file changed +25
-0
lines changed
1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -356,6 +356,31 @@ test_incremental_build() {
356
356
357
357
}
358
358
359
+ test_node_cmd () {
360
+ local app=$1
361
+ local node_env=$2
362
+ local init_wrapper=$3
363
+ local node_cmd=$4
364
+
365
+ run_test_application_with_quoted_args $app " -e NODE_ENV=$node_env -e INIT_WRAPPER=$init_wrapper -e NODE_CMD=$node_cmd "
366
+ logs=$( container_logs)
367
+ wait_for_cid
368
+
369
+ test_connection
370
+ ct_check_testcase_result $?
371
+
372
+ logs=$( container_logs)
373
+ echo ${logs} | grep -q DEBUG_PORT=5858
374
+ ct_check_testcase_result $?
375
+ echo ${logs} | grep -q NODE_ENV=$node_env
376
+ ct_check_testcase_result $?
377
+ echo ${logs} | grep -q INIT_WRAPPER=$init_wrapper
378
+ ct_check_testcase_result $?
379
+ echo ${logs} | grep -q NODE_CMD=" $node_cmd "
380
+ ct_check_testcase_result $?
381
+
382
+ kill_test_application
383
+ }
359
384
360
385
# test express webapp
361
386
run_s2i_build_express_webapp () {
You can’t perform that action at this time.
0 commit comments