title: TestNg running multiple suites running multiple times
body: <p>I have a high level XML file:
  testsng.xml</p>
  
  <pre><code>&lt;suite name="allSuites"&gt;
    &lt;suite-files&gt;
      &lt;suite-file path="tests.run1.xml" /&gt;
    &lt;/suite-files&gt;
  &lt;/suite&gt;
  </code></pre>
  
  <p>My intention is to parse this XML file using the org.testng.xml.Parser add some info to it.</p>
  
  <pre><code>  Parser parser = new Parser(inputXml);
    parser.setLoadClasses(false);
    Collection&lt;XmlSuite&gt; suites = parser.parse();
    XmlSuite parentSuite = suites.iterator().next();   
  </code></pre>
  
  <p>Then once the structure has all necessary tests/class, will pass it back to TestNG:</p>
  
  <pre><code>  TestNG testng = new TestNG();
    List&lt;XmlSuite&gt; suitesList = new ArrayList&lt;XmlSuite&gt;();
    suitesList.add(parentSuite);
    testng.setXmlSuites(suitesList);
    testng.run();
  </code></pre>
  
  <p>The problem I'm seeing is that tests.run1.xml is getting run twice (when I only expect it to run once) and not even letting the first run finish:</p>
  
  <pre><code>[TestNG] Running:
  tests.run1.xml
  ...
  [TestNG] Running:
  tests.run1.xml
  ...
  [TestNG] Running:
  testsng.xml
  </code></pre>