The first line opens a new file descriptor 5 and pipes it to 1 (stdout).
The second line executes make term, and `tee`s the into into a variable and into fd 5 (i.e. stdout).
The last line checks if the patter `OK \(\d+ tests\)` was found in the output. If not, the exit code is 1.
Works for every board that has a `term` target.