File tree 3 files changed +9
-6
lines changed
@aws-cdk-testing/cli-integ/lib
3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,9 @@ export function integTest(
35
35
output . write ( `${ name } \n` ) ;
36
36
output . write ( '================================================================\n' ) ;
37
37
38
+ const now = Date . now ( ) ;
39
+ process . stderr . write ( `[INTEG TEST::${ name } ] Starting (pid ${ process . pid } )...\n` ) ;
38
40
try {
39
- process . stderr . write ( `▶️ [INTEG TEST::${ name } ] Starting...\n` ) ;
40
41
return await callback ( {
41
42
output,
42
43
randomString : randomString ( ) ,
@@ -45,7 +46,7 @@ export function integTest(
45
46
} ,
46
47
} ) ;
47
48
} catch ( e ) {
48
- process . stderr . write ( `💥 [INTEG TEST::${ name } ] Failed: ${ e } \n` ) ;
49
+ process . stderr . write ( `[INTEG TEST::${ name } ] Failed: ${ e } \n` ) ;
49
50
output . write ( e . message ) ;
50
51
output . write ( e . stack ) ;
51
52
// Print output only if the test fails. Use 'console.log' so the output is buffered by
@@ -54,7 +55,8 @@ export function integTest(
54
55
console . log ( output . buffer ( ) . toString ( ) ) ;
55
56
throw e ;
56
57
} finally {
57
- process . stderr . write ( `⏹️ [INTEG TEST::${ name } ] Done.\n` ) ;
58
+ const duration = Date . now ( ) - now ;
59
+ process . stderr . write ( `[INTEG TEST::${ name } ] Done (${ duration } ms).\n` ) ;
58
60
}
59
61
} , timeoutMillis ) ;
60
62
}
Original file line number Diff line number Diff line change @@ -87,14 +87,15 @@ export class ResourcePool<A extends string=string> {
87
87
88
88
private makeLease ( value : A ) : ILease < A > {
89
89
let disposed = false ;
90
+ process . stderr . write ( `Lease acquired by ${ process . pid } : ${ value } ` ) ;
90
91
return {
91
92
value,
92
- dispose : ( ) => {
93
+ dispose : async ( ) => {
93
94
if ( disposed ) {
94
95
throw new Error ( 'Calling dispose() on an already-disposed lease.' ) ;
95
96
}
96
97
disposed = true ;
97
- return this . returnValue ( value ) ;
98
+ return this . returnValue ( value ) . finally ( ( ) => process . stderr . write ( `Lease returned by ${ process . pid } : ${ value } ` ) ) ;
98
99
} ,
99
100
} ;
100
101
}
Original file line number Diff line number Diff line change 3
3
# This is a backwards compatibility script. All logic has moved to '@aws-cdk-testing/cli-integ'
4
4
# and should be called from there directly.
5
5
6
- exec ${INTEG_TOOLS} /bin/run-suite --use-cli-release=$VERSION cli-integ-tests
6
+ exec ${INTEG_TOOLS} /bin/run-suite --use-cli-release=$VERSION --verbose cli-integ-tests
You can’t perform that action at this time.
0 commit comments