@@ -521,22 +521,22 @@ def test_command_good(self, mock_requests):
521521 # switch to docker image app
522522 build .sha = ''
523523 build .save ()
524- self .assertEqual (app ._get_command ('web' ), [" node" , " server.js" ])
524+ self .assertEqual (app ._get_command ('web' ), [' node server.js' ])
525525
526526 # switch to dockerfile app
527527 build .sha = 'european-swallow'
528528 build .dockerfile = 'dockerdockerdocker'
529529 build .save ()
530- self .assertEqual (app ._get_command ('web' ), [" node" , " server.js" ])
530+ self .assertEqual (app ._get_command ('web' ), [' node server.js' ])
531531 self .assertEqual (app ._get_command ('cmd' ), [])
532532
533533 # ensure we can override the cmd process type in a Procfile
534534 build .procfile ['cmd' ] = 'node server.js'
535535 build .save ()
536- self .assertEqual (app ._get_entrypoint ('cmd' ), [])
537- self .assertEqual (app ._get_command ('cmd' ), [" node" , " server.js" ])
538- self .assertEqual (app ._get_entrypoint ('worker' ), [])
539- self .assertEqual (app ._get_command ('worker' ), [" node" , " worker.js" ])
536+ self .assertEqual (app ._get_entrypoint ('cmd' ), ['/bin/sh' , '-c' ])
537+ self .assertEqual (app ._get_command ('cmd' ), [' node server.js' ])
538+ self .assertEqual (app ._get_entrypoint ('worker' ), ['/bin/sh' , '-c' ])
539+ self .assertEqual (app ._get_command ('worker' ), [' node worker.js' ])
540540
541541 # for backwards compatibility if no Procfile is supplied
542542 build .procfile = {}
@@ -577,7 +577,7 @@ def test_run_command_good(self, mock_requests):
577577 response = self .client .post (url , body )
578578 self .assertEqual (response .status_code , 200 , response .data )
579579 app = App .objects .get (id = app_id )
580- self .assertEqual (app ._get_entrypoint ('web' ), [])
580+ self .assertEqual (app ._get_entrypoint ('web' ), ['/bin/sh' , '-c' ])
581581
582582 # docker image workflow
583583 build .dockerfile = ''
@@ -588,7 +588,7 @@ def test_run_command_good(self, mock_requests):
588588 response = self .client .post (url , body )
589589 self .assertEqual (response .status_code , 200 , response .data )
590590 app = App .objects .get (id = app_id )
591- self .assertEqual (app ._get_entrypoint ('cmd' ), [])
591+ self .assertEqual (app ._get_entrypoint ('cmd' ), ['/bin/sh' , '-c' ])
592592
593593 # procfile workflow
594594 build .sha = 'somereallylongsha'
@@ -637,7 +637,7 @@ def test_run_not_fail_on_debug(self, mock_requests):
637637 response = self .client .post (url , body )
638638 self .assertEqual (response .status_code , 200 , response .data )
639639 app = App .objects .get (id = app_id )
640- self .assertEqual (app ._get_entrypoint ('web' ), [])
640+ self .assertEqual (app ._get_entrypoint ('web' ), ['/bin/sh' , '-c' ])
641641
642642 def test_scaling_does_not_add_run_proctypes_to_structure (self , mock_requests ):
643643 """Test that app info doesn't show transient "run" proctypes."""
0 commit comments