I ran the tests on m68k, where they were many failures, but the package installed anyway. Seemingly the exit status from run.py cannot be trusted. The ebuild also creates a file called node_failed.txt to write the failures to, but this file remained empty. Instead, another file called failed.txt was populated with the failures. I therefore don't think the "touch" line is needed any more.
I ran into the same issue on amd64 and riscv.