@@ -0,0 +1,753 @@
+import os%0Aimport subprocess%0Aimport unittest%0A%0ASHELLS = %5B'/bin/dash', '/bin/bash'%5D%0A%0Aclass TestStartSh(unittest.TestCase):%0A    def setUp(self):%0A        open('ut_newest.qcow2', 'a').close()%0A%0A    def tearDown(self):%0A        os.remove('ut_newest.qcow2')%0A%0A    def run_start(self, extra_args):%0A        %22%22%22Run script through several shells%22%22%22%0A        output = None%0A        for sh in SHELLS:%0A            shOut = subprocess.check_output(%5B%0A                sh,%0A                %22./start.sh%22,%0A                %22--qemu-bin%22, %22/bin/echo%22,%0A            %5D + extra_args)%0A            if output:%0A                self.assertEqual(shOut, output)%0A            else:%0A                output = shOut%0A        return shOut.decode('utf8')%0A%0Aif __name__ == '__main__':%0A    unittest.main()%0A

Test infrastructure