protected void assertFileSaved(ResourceFile file, String expectedContents) throws IOException {
		//
		// verify that the contents of the file on disk are the same as those from our buffer
		//
		waitForSwing();
		String fileText = readFileContents(file);

		if (!expectedContents.trim().equals(fileText.trim())) {
			System.err.println(
				"Contents of file on disk do not match that of the editor after performing " +
					"a save operation: " + file);
			printChars(expectedContents, fileText);
			Assert.fail(
				"Contents of file on disk do not match that of the editor after performing " +
					"a save operation: " + file);
		}
//
//		assertEquals("Contents of file on disk do not match that of the editor after performing " +
//			"a save operation: " + file, expectedContents, fileText);
	}
Run the last script by pressing the last script button and return output.

@param taskName name for the task listener
@return script output written to the console
@throws Exception on failure, e.g. timeout
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/script/AbstractGhidraScriptMgrPluginTest.java