Fix un-assignment local variable 'returncode' error

This commit fixes an error "local variable 'returncode' referenced
before assignment" when we run 'tempest run' with having a
testrepository.

Change-Id: I99425de8481db4bddbe06b715bcceaaadaa1a797
2 files changed