run_tests: move reusable code to scripts/runtime

Standalone tests will use it.

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Message-Id: <1453209851-27760-7-git-send-email-rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2 files changed