@Override
  public void beforeTest(QTestUtil qt) throws Exception {
    if (enabled) {
      qt.getConf().set("hive.support.concurrency", "true");
      qt.getConf().set("hive.txn.manager", "org.apache.hadoop.hive.ql.lockmgr.DbTxnManager");
    }
  }
QTest transactional directive handler

Enables transactional for the test.
Could also make it for other QOption-s.

Example:
--! qt:transactional
itests/util/src/main/java/org/apache/hadoop/hive/ql/qoption/QTestTransactional.java