From 59c7be307c5880349333235f24df682f5efe355d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 16 Jun 2019 19:11:12 +0200 Subject: [PATCH] Travis: Fix test/cli testing --- lib/cppcheck.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 42641e8c3..67d2fbb86 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -83,6 +83,9 @@ namespace { } std::string getAddonInfo(const std::string &fileName, const std::string &exename) { + if (fileName.find(".") == std::string::npos) + return getAddonInfo(fileName + ".py", exename); + if (endsWith(fileName, ".py", 3)) { scriptFile = getFullPath(fileName, exename); if (scriptFile.empty())