From 613e75b5c64adb4d8407c0b64940c9ed3ab02d57 Mon Sep 17 00:00:00 2001
From: Tim Ryan <tim@3drobotics.com>
Date: Fri, 17 Jul 2015 08:58:02 -0700
Subject: [PATCH] Allows python -m tests.sitl invocation.

---
 .travis.yml       | 2 +-
 appveyor.yml      | 2 +-
 circle.yml        | 2 +-
 tests/__init__.py | 0
 4 files changed, 3 insertions(+), 3 deletions(-)
 create mode 100644 tests/__init__.py

diff --git a/.travis.yml b/.travis.yml
index 23d4ebca5..f220cc223 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -13,7 +13,7 @@ script:
   - (a; sudo python setup.py install );z
   - (a; nosetests tests/web );z
   - (a; nosetests tests/unit );z
-  - (a; cd tests; python -um sitl );z
+  - (a; python -m tests.sitl );z
 git:
   depth: 10
 language: objective-c
diff --git a/appveyor.yml b/appveyor.yml
index cfb39922e..bf793a0bd 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -24,7 +24,7 @@ build_script:
   - cmd: 'setlocal & python setup.py install & endlocal'
   - cmd: "setlocal & SET PATH=%PYTHON%;c:\\Python27\\Scripts;%PATH% & nosetests tests\\web & endlocal"
   - cmd: "setlocal & SET PATH=%PYTHON%;c:\\Python27\\Scripts;%PATH% & nosetests tests\\unit & endlocal"
-  - cmd: "setlocal & SET PATH=%PYTHON%;c:\\Python27\\Scripts;%PATH% & cd tests & python -um sitl & endlocal"
+  - cmd: "setlocal & SET PATH=%PYTHON%;c:\\Python27\\Scripts;%PATH% & python -m tests.sitl & endlocal"
 clone_depth: 10
 test: 'off'
 branches:
diff --git a/circle.yml b/circle.yml
index 72d066308..e64b23540 100644
--- a/circle.yml
+++ b/circle.yml
@@ -11,7 +11,7 @@ dependencies:
         environment: {}
     - nosetests tests/unit:
         environment: {}
-    - cd tests; python -um sitl:
+    - python -m tests.sitl:
         environment: {}
   pre:
     - pip2 install nose psutil mock:
diff --git a/tests/__init__.py b/tests/__init__.py
new file mode 100644
index 000000000..e69de29bb