Exit without error in CI if not Automake

Now that CI supports C++ and python format validation,
need to allow repos that aren't built using Automake
to still be able to run through CI so that they can
do the code style format checking.

Resolves openbmc/openbmc#2856

Change-Id: I84cd23969115ec36829a5ee5ec00cbfa4622cd0c
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/scripts/unit-test.py b/scripts/unit-test.py
index 5739d55..adb5f08 100755
--- a/scripts/unit-test.py
+++ b/scripts/unit-test.py
@@ -399,6 +399,12 @@
     CODE_SCAN_DIR = WORKSPACE + "/" + UNIT_TEST_PKG
     check_call_cmd(WORKSPACE, "./format-code.sh", CODE_SCAN_DIR)
 
+    # The rest of this script is CI testing, which currently only supports
+    # Automake based repos. Check if this repo is Automake, if not exit
+    if not os.path.isfile(CODE_SCAN_DIR + "/configure.ac"):
+        print "Not a supported repo for CI Tests, exit"
+        quit()
+
     prev_umask = os.umask(000)
     # Determine dependencies and add them
     dep_added = dict()