Repository: asterixdb
Updated Branches:
  refs/heads/master 06478601c -> 68f7e43d8


[ASTERIXDB-2024][TEST] Test fwk comment patterns

Update the test framework to match comment patterns only at head of
line, to avoid truncating other instances of these characters i.e.
http://foobar.com -> http:

Change-Id: I4c317ccee242bd5fa2f5ec5bed85a69f0a47cf11
Reviewed-on: https://asterix-gerrit.ics.uci.edu/1919
Reviewed-by: Michael Blow <mb...@apache.org>
Integration-Tests: Michael Blow <mb...@apache.org>
Tested-by: Michael Blow <mb...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/asterixdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/asterixdb/commit/68f7e43d
Tree: http://git-wip-us.apache.org/repos/asf/asterixdb/tree/68f7e43d
Diff: http://git-wip-us.apache.org/repos/asf/asterixdb/diff/68f7e43d

Branch: refs/heads/master
Commit: 68f7e43d884ed7ad47a4cc923a6f5518425ac26b
Parents: 0647860
Author: Michael Blow <mb...@apache.org>
Authored: Sun Aug 6 16:47:04 2017 -0400
Committer: Michael Blow <mb...@apache.org>
Committed: Sun Aug 6 13:52:32 2017 -0700

----------------------------------------------------------------------
 .../test/java/org/apache/asterix/test/common/TestExecutor.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/asterixdb/blob/68f7e43d/asterixdb/asterix-app/src/test/java/org/apache/asterix/test/common/TestExecutor.java
----------------------------------------------------------------------
diff --git 
a/asterixdb/asterix-app/src/test/java/org/apache/asterix/test/common/TestExecutor.java
 
b/asterixdb/asterix-app/src/test/java/org/apache/asterix/test/common/TestExecutor.java
index 1079832..1c29e86 100644
--- 
a/asterixdb/asterix-app/src/test/java/org/apache/asterix/test/common/TestExecutor.java
+++ 
b/asterixdb/asterix-app/src/test/java/org/apache/asterix/test/common/TestExecutor.java
@@ -105,8 +105,8 @@ public class TestExecutor {
     private static final long MAX_URL_LENGTH = 2000l;
     private static final Pattern JAVA_BLOCK_COMMENT_PATTERN = 
Pattern.compile("/\\*.*\\*/",
             Pattern.MULTILINE | Pattern.DOTALL);
-    private static final Pattern JAVA_LINE_COMMENT_PATTERN = 
Pattern.compile("//.*$", Pattern.MULTILINE);
-    private static final Pattern SHELL_LINE_COMMENT_PATTERN = 
Pattern.compile("#.*$", Pattern.MULTILINE);
+    private static final Pattern JAVA_LINE_COMMENT_PATTERN = 
Pattern.compile("^//.*$", Pattern.MULTILINE);
+    private static final Pattern SHELL_LINE_COMMENT_PATTERN = 
Pattern.compile("^#.*$", Pattern.MULTILINE);
     private static final Pattern REGEX_LINES_PATTERN = 
Pattern.compile("^(-)?/(.*)/([im]*)$");
     private static final Pattern POLL_TIMEOUT_PATTERN = 
Pattern.compile("polltimeoutsecs=(\\d+)(\\D|$)",
             Pattern.MULTILINE);

Reply via email to