From 88b61dc1f5e7f3a6862ae70e3a999b29d96d5521 Mon Sep 17 00:00:00 2001 From: Richard Dymond Date: Thu, 12 Sep 2024 17:07:47 -0300 Subject: [PATCH] Disable interrupts where appropriate in trace.py tests --- tests/test_trace.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/test_trace.py b/tests/test_trace.py index fc0a64a9..e02da7de 100644 --- a/tests/test_trace.py +++ b/tests/test_trace.py @@ -1060,7 +1060,7 @@ def test_option_audio(self): ] binfile = self.write_bin_file(data, suffix='.bin') start, stop = 32768, 32776 - output, error = self.run_trace(f'-o {start} -S {stop} --audio {binfile}') + output, error = self.run_trace(f'-n -o {start} -S {stop} --audio {binfile}') self.assertEqual(error, '') exp_output = """ Stopped at $8008 @@ -1082,7 +1082,7 @@ def test_option_audio_with_delays_over_multiple_lines(self): ) binfile = self.write_bin_file(data, suffix='.bin') start, stop = 32768, 32780 - output, error = self.run_trace(f'-o {start} -S {stop} --audio {binfile}') + output, error = self.run_trace(f'-n -o {start} -S {stop} --audio {binfile}') self.assertEqual(error, '') exp_output = """ Stopped at $800C @@ -1229,7 +1229,7 @@ def test_option_depth_0(self): ) binfile = self.write_bin_file(data, suffix='.bin') start, stop = 32768, 32776 - output, error = self.run_trace(f'-o {start} -S {stop} --audio --depth 0 {binfile}') + output, error = self.run_trace(f'-n -o {start} -S {stop} --audio --depth 0 {binfile}') self.assertEqual(error, '') exp_output = """ Stopped at $8008 @@ -1248,7 +1248,7 @@ def test_option_depth_1(self): ) binfile = self.write_bin_file(data, suffix='.bin') start, stop = 32768, 32776 - output, error = self.run_trace(f'-o {start} -S {stop} --audio --depth 1 {binfile}') + output, error = self.run_trace(f'-n -o {start} -S {stop} --audio --depth 1 {binfile}') self.assertEqual(error, '') exp_output = """ Stopped at $8008 @@ -1269,7 +1269,7 @@ def test_option_depth_2(self): ) binfile = self.write_bin_file(data, suffix='.bin') start, stop = 32768, 32780 - output, error = self.run_trace(f'-o {start} -S {stop} --audio --depth 2 {binfile}') + output, error = self.run_trace(f'-n -o {start} -S {stop} --audio --depth 2 {binfile}') self.assertEqual(error, '') exp_output = """ Stopped at $800C @@ -1292,7 +1292,7 @@ def test_option_depth_3(self): ) binfile = self.write_bin_file(data, suffix='.bin') start, stop = 32768, 32784 - output, error = self.run_trace(f'-o {start} -S {stop} --audio --depth 3 {binfile}') + output, error = self.run_trace(f'-n -o {start} -S {stop} --audio --depth 3 {binfile}') self.assertEqual(error, '') exp_output = """ Stopped at $8010 @@ -2064,7 +2064,7 @@ def test_config_PNGScale_read_from_file(self): outfile = 'out.png' start = 32768 stop = start + len(data) - output, error = self.run_trace(f'-o {start} -S {stop} {infile} {outfile}') + output, error = self.run_trace(f'-n -o {start} -S {stop} {infile} {outfile}') exp_output = f""" Stopped at ${stop:04X} Wrote {outfile} @@ -2090,7 +2090,7 @@ def test_config_PNGScale_set_on_command_line(self): outfile = 'out.png' start = 32768 stop = start + len(data) - output, error = self.run_trace(f'-I PNGScale=3 -o {start} -S {stop} {infile} {outfile}') + output, error = self.run_trace(f'-n -I PNGScale=3 -o {start} -S {stop} {infile} {outfile}') exp_output = f""" Stopped at ${stop:04X} Wrote {outfile} @@ -2812,7 +2812,7 @@ def test_write_png(self): outfile = 'out.png' start = 32768 stop = start + len(data) - output, error = self.run_trace(f'-o {start} -S {stop} {infile} {outfile}') + output, error = self.run_trace(f'-n -o {start} -S {stop} {infile} {outfile}') exp_output = f""" Stopped at ${stop:04X} Wrote {outfile} @@ -2852,7 +2852,7 @@ def test_write_wav_48k(self): outfile = 'out.wav' start = 32768 stop = start + len(data) - output, error = self.run_trace(f'-o {start} -S {stop} {infile} {outfile}') + output, error = self.run_trace(f'-n -o {start} -S {stop} {infile} {outfile}') exp_output = f""" Stopped at ${stop:04X} Wrote {outfile} @@ -2902,7 +2902,7 @@ def test_write_wav_no_audio(self): start = 32768 stop = start + len(data) with self.assertRaises(SkoolKitError) as cm: - self.run_trace(f'-o {start} -S {stop} {infile} out.wav') + self.run_trace(f'-n -o {start} -S {stop} {infile} out.wav') self.assertEqual(cm.exception.args[0], 'No audio detected') self.assertIsNone(audio_writer)