`arm64` needs get more time duration for the test to finish. `pty.Start()` opens a file, so the caller should close it explicitly, else the file I/O can result in unexpected data synchronization issue. All those changes will not affect the test itself. Signed-off-by: Dennis Chen <dennis.chen@arm.com> Upstream-commit: 476d7872efb60b1ef1bc7d9d83952f9dbc8f8798 Component: engine