@@ -411,7 +411,8 @@ func TestRunLuaFlashcartGenerator_MakeCart(t *testing.T) {
411
411
if err != nil {
412
412
t .Fatalf ("Couldn't read lua script: %s" , err )
413
413
}
414
- //combinedbin := loadFullCart("fxsave_combined.bin", t)
414
+
415
+ comparebin := loadFullCart ("makecart.bin" , t )
415
416
416
417
outbinpath , err := newRandomFilepath ("makecart.bin" )
417
418
if err != nil {
@@ -422,14 +423,14 @@ func TestRunLuaFlashcartGenerator_MakeCart(t *testing.T) {
422
423
if err != nil {
423
424
t .Fatalf ("Couldn't run flashcart generator: %s. Log: \n %s" , err , errout )
424
425
}
425
- //// Compare the two files
426
- // testbin, err := os.ReadFile(outbinpath)
427
- // if err != nil {
428
- // t.Fatalf("Couldn't read %s: %s", outbinpath, err)
429
- // }
430
- // if !bytes.Equal(combinedbin , testbin) {
431
- // t.Fatalf("Written flashcart not equivalent! %d bytes vs %d", len(testbin), len(combinedbin ))
432
- // }
426
+ // Compare the two files
427
+ testbin , err := os .ReadFile (outbinpath )
428
+ if err != nil {
429
+ t .Fatalf ("Couldn't read %s: %s" , outbinpath , err )
430
+ }
431
+ if ! bytes .Equal (comparebin , testbin ) {
432
+ t .Fatalf ("Written flashcart not equivalent! %d bytes vs %d" , len (testbin ), len (comparebin ))
433
+ }
433
434
}
434
435
435
436
func TestFindSuitablePackageImage (t * testing.T ) {
0 commit comments