scripts/unit-test: Remove confusing directory references

Many of the directory references passed around during make stages are
confusing because some of the logic uses the passed directory but
executed commands are using the current working directory. This change
makes the behavior of using the current working directory consistent for
executions of make and cppcheck.

Tested:
    Ran through unit tests for an automake project (phosphor-networkd)
    and a recently converted meson project (sdeventplus) to make sure it
    still executes the commands as expected.

Change-Id: I2160bbc1f5f94e460192a43c82663225286539b9
Signed-off-by: William A. Kennington III <wak@google.com>
1 file changed