test-lib: avoid full path to store test results