protected void assertFileContentsSame(String expectedContents, ResourceFile file)
			throws IOException {
		String fileText = readFileContents(file);

		if (!expectedContents.trim().equals(fileText.trim())) {
			System.err.println("Contents of file on disk have been unexpectedly changed: " + file);
			printChars(expectedContents, fileText);
			Assert.fail("Contents of file on disk have been unexpectedly changed: " + file);
		}
//
//		assertEquals("Contents of file on disk have been unexpectedly changed: " + 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