I prefer the way to be a parameter. Actually I'd like to put system image and test result into different directories, and merge the logic of backup and upload.