@@ -0,0 +1,1872 @@
+import sys%0Aimport tempfile%0Aimport textwrap%0Aimport unittest%0Aimport shutil%0Aimport subprocess%0A%0A%0Aclass PabotArgumentsOutputsTest(unittest.TestCase):%0A%0A    def setUp(self):%0A        self.tmpdir = tempfile.mkdtemp()%0A%0A    def tearDown(self):%0A        shutil.rmtree(self.tmpdir)%0A%0A    def _run_tests_with(self, testfile, arg1file, arg2file):%0A        robot_file = open('%7B%7D/test.robot'.format(self.tmpdir), 'w')%0A        robot_file.write(textwrap.dedent(testfile))%0A        robot_file.close()%0A        with open('%7B%7D/arg1.txt'.format(self.tmpdir), 'w') as f:%0A            f.write(textwrap.dedent(arg1file))%0A        with open('%7B%7D/arg2.txt'.format(self.tmpdir), 'w') as f:%0A            f.write(textwrap.dedent(arg2file))%0A        process = subprocess.Popen(%0A            %5Bsys.executable, '-m' 'pabot.pabot',%0A            '--processes', '2',%0A            '--argumentfile1', '%7B%7D/arg1.txt'.format(self.tmpdir),%0A            '--argumentfile2', '%7B%7D/arg2.txt'.format(self.tmpdir),%0A            '--outputdir', self.tmpdir,%0A            '--output', 'test.xml',%0A            '%7B%7D/test.robot'.format(self.tmpdir)%5D,%0A            cwd=self.tmpdir,%0A            stdout=subprocess.PIPE,%0A            stderr=subprocess.PIPE)%0A        return process.communicate(), process.returncode%0A%0A    def test_argumentfile_outputs(self):%0A        (stdout, stderr), rc = self._run_tests_with(%0A        '''%0A        *** Test Cases ***%0A        Test 1%0A            Log     $%7BVALUE%7D%0A            Should Be True  $%7BVALUE%7D == 2%0A        ''',%0A        '''%0A        --variable VALUE:1%0A        ''',%0A        '''%0A        --variable VALUE:2%0A        '''%0A        )%0A        self.assertEqual(rc, 1)%0A        if sys.version_info %3C (3, 0):%0A            self.assertIn('PASSED', stdout, stderr)%0A            self.assertIn('FAILED', stdout, stderr)%0A        else:%0A            self.assertIn(b'PASSED', stdout, stderr)%0A            self.assertIn(b'FAILED', stdout, stderr)%0A

add arguments output test