@@ -807,7 +807,7 @@ forgetest!(
807
807
dss_exec_lib,
808
808
"-vvv" ,
809
809
] ) ;
810
- cmd. print_output ( ) ;
810
+ cmd. assert_non_empty_stdout ( ) ;
811
811
}
812
812
) ;
813
813
@@ -1177,21 +1177,18 @@ contract ContractThreeTest is DSTest {
1177
1177
cmd. forge_fuse( ) ;
1178
1178
let first_out = cmd. arg( "test" ) . arg( "--gas-report" ) . stdout_lossy( ) ;
1179
1179
assert!( first_out. contains( "foo" ) && first_out. contains( "bar" ) && first_out. contains( "baz" ) ) ;
1180
- // cmd.arg("test").arg("--gas-report").print_output();
1181
1180
1182
1181
cmd. forge_fuse( ) ;
1183
1182
prj. write_config( Config { gas_reports: ( vec![ ] ) , ..Default :: default ( ) } ) ;
1184
1183
cmd. forge_fuse( ) ;
1185
1184
let second_out = cmd. arg( "test" ) . arg( "--gas-report" ) . stdout_lossy( ) ;
1186
1185
assert!( second_out. contains( "foo" ) && second_out. contains( "bar" ) && second_out. contains( "baz" ) ) ;
1187
- // cmd.arg("test").arg("--gas-report").print_output();
1188
1186
1189
1187
cmd. forge_fuse( ) ;
1190
1188
prj. write_config( Config { gas_reports: ( vec![ "*" . to_string( ) ] ) , ..Default :: default ( ) } ) ;
1191
1189
cmd. forge_fuse( ) ;
1192
1190
let third_out = cmd. arg( "test" ) . arg( "--gas-report" ) . stdout_lossy( ) ;
1193
1191
assert!( third_out. contains( "foo" ) && third_out. contains( "bar" ) && third_out. contains( "baz" ) ) ;
1194
- // cmd.arg("test").arg("--gas-report").print_output();
1195
1192
1196
1193
cmd. forge_fuse( ) ;
1197
1194
prj. write_config( Config {
@@ -1205,7 +1202,6 @@ contract ContractThreeTest is DSTest {
1205
1202
cmd. forge_fuse( ) ;
1206
1203
let fourth_out = cmd. arg( "test" ) . arg( "--gas-report" ) . stdout_lossy( ) ;
1207
1204
assert!( fourth_out. contains( "foo" ) && fourth_out. contains( "bar" ) && fourth_out. contains( "baz" ) ) ;
1208
- // cmd.arg("test").arg("--gas-report").print_output();
1209
1205
} ) ;
1210
1206
1211
1207
forgetest ! ( gas_report_some_contracts, |prj, cmd| {
@@ -1310,7 +1306,6 @@ contract ContractThreeTest is DSTest {
1310
1306
cmd. forge_fuse( ) ;
1311
1307
let first_out = cmd. arg( "test" ) . arg( "--gas-report" ) . stdout_lossy( ) ;
1312
1308
assert!( first_out. contains( "foo" ) && !first_out. contains( "bar" ) && !first_out. contains( "baz" ) ) ;
1313
- // cmd.arg("test").arg("--gas-report").print_output();
1314
1309
1315
1310
// report for Two
1316
1311
cmd. forge_fuse( ) ;
@@ -1323,7 +1318,6 @@ contract ContractThreeTest is DSTest {
1323
1318
assert!(
1324
1319
!second_out. contains( "foo" ) && second_out. contains( "bar" ) && !second_out. contains( "baz" )
1325
1320
) ;
1326
- // cmd.arg("test").arg("--gas-report").print_output();
1327
1321
1328
1322
// report for Three
1329
1323
cmd. forge_fuse( ) ;
@@ -1334,7 +1328,6 @@ contract ContractThreeTest is DSTest {
1334
1328
cmd. forge_fuse( ) ;
1335
1329
let third_out = cmd. arg( "test" ) . arg( "--gas-report" ) . stdout_lossy( ) ;
1336
1330
assert!( !third_out. contains( "foo" ) && !third_out. contains( "bar" ) && third_out. contains( "baz" ) ) ;
1337
- // cmd.arg("test").arg("--gas-report").print_output();
1338
1331
} ) ;
1339
1332
1340
1333
forgetest ! ( gas_ignore_some_contracts, |prj, cmd| {
@@ -1439,7 +1432,6 @@ contract ContractThreeTest is DSTest {
1439
1432
cmd. forge_fuse( ) ;
1440
1433
let first_out = cmd. arg( "test" ) . arg( "--gas-report" ) . stdout_lossy( ) ;
1441
1434
assert!( !first_out. contains( "foo" ) && first_out. contains( "bar" ) && first_out. contains( "baz" ) ) ;
1442
- // cmd.arg("test").arg("--gas-report").print_output();
1443
1435
1444
1436
// ignore ContractTwo
1445
1437
cmd. forge_fuse( ) ;
@@ -1453,7 +1445,6 @@ contract ContractThreeTest is DSTest {
1453
1445
assert!(
1454
1446
second_out. contains( "foo" ) && !second_out. contains( "bar" ) && second_out. contains( "baz" )
1455
1447
) ;
1456
- // cmd.arg("test").arg("--gas-report").print_output();
1457
1448
1458
1449
// ignore ContractThree
1459
1450
cmd. forge_fuse( ) ;
0 commit comments