diff test/testsamples.py @ 375:19eacf4f7270

Started on memory manager
author Windel Bouwman
date Sun, 23 Mar 2014 15:44:06 +0100
parents 72a3b646d543
children 9667d78ba79e
line wrap: on
line diff
--- a/test/testsamples.py	Fri Mar 21 15:27:18 2014 +0100
+++ b/test/testsamples.py	Sun Mar 23 15:44:06 2014 +0100
@@ -1,7 +1,7 @@
 import unittest
 import os
 import io
-from testemulation import runQemu
+from testemulation import runQemu, has_qemu
 from testzcc import relpath
 from ppci.tasks import TaskRunner
 from ppci.buildtasks import Assemble, Compile, Link
@@ -115,6 +115,10 @@
 
 
 class TestSamplesOnVexpress(unittest.TestCase, Samples):
+    def setUp(self):
+        if not has_qemu():
+            self.skipTest('Not running qemu tests')
+
     def do(self, src, expected_output):
         # Construct binary file from snippet:
         o1 = ObjectFile()