function safe cmd
This function is used to execute a command on the target with a greater
degree of safety. In particular, the oom score for the process is
adjusted so that if the target board runs out of memory during the execution, it will be the first process killed on the system.
It basically just calls ov_rootfs_oom to adjust
the oom score, and then calls cmd with the command to execute on target.
This is chiefly used by report and report_append to avoid problems overflowing memory
or disturbing other processes when executing the main command to execute the test.
Here are some sample invocations:
This function takes one positional argument, which is the command to execute.
Returns non-zero on error.
Located in scripts/functions.sh