Merge change I8f6ac3c9 into eclair

* changes:
  Refactor runtest test_defs to allow programmatic creation.