@@ -72,7 +72,7 @@ suite('Quarkus devfile API test', function (): void {
72
72
runCommandInBash = `cd ${ workdir } && ` + runCommandInBash ;
73
73
}
74
74
75
- const output : ShellString = containerTerminal . execInContainerCommand ( runCommandInBash , containerName ) ;
75
+ const output : ShellString = containerTerminal . execInContainerCommand ( runCommandInBash , containerName , '5m' ) ;
76
76
expect ( output . code ) . eqls ( 0 ) ;
77
77
expect ( output . stdout . trim ( ) ) . contains ( 'BUILD SUCCESS' ) ;
78
78
} ) ;
@@ -86,12 +86,15 @@ suite('Quarkus devfile API test', function (): void {
86
86
87
87
let runCommandInBash : string = commandLine . replaceAll ( '$' , '\\$' ) ; // don't wipe out env. vars like "${PROJECTS_ROOT}"
88
88
if ( workdir !== undefined && workdir !== '' ) {
89
- runCommandInBash = `cd ${ workdir } && ` + runCommandInBash ;
89
+ runCommandInBash = `cd ${ workdir } && sh -c "( ` + runCommandInBash + ' > server.log 2>&1 &) && exit"' ;
90
90
}
91
91
92
- const output : ShellString = containerTerminal . execInContainerCommand ( runCommandInBash , containerName ) ;
93
- expect ( output . code ) . eqls ( 0 ) ;
94
- expect ( output . stdout . trim ( ) ) . contains ( 'Listening for transport dt_socket at address: 5005' ) ;
92
+ const commandOutput : ShellString = containerTerminal . execInContainerCommand ( runCommandInBash , containerName ) ;
93
+ expect ( commandOutput . code ) . eqls ( 0 ) ;
94
+
95
+ const commandLog : ShellString = containerTerminal . execInContainerCommand ( `cat ${ workdir } /command.log` , containerName ) ;
96
+ Logger . info ( `Command log: ${ commandLog . stdout } ` ) ;
97
+ expect ( commandLog . stdout . trim ( ) ) . contains ( 'Listening on: http://0.0.0.0:8080' ) ;
95
98
} ) ;
96
99
97
100
suiteTeardown ( 'Delete workspace' , function ( ) : void {
0 commit comments