File tree Expand file tree Collapse file tree
main/clojure/buildversion_plugin
test/clojure/buildversion_plugin/test Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7171 [short-hash long-hash] (split
7272 (run-git-wait dir
7373 [" log" " -n" " 1" " --format=%h %H" ])
74- #" " )
74+ #"\s + " )
7575
7676 versioning-properties {:build-tag " N/A"
7777 :build-version " N/A"
Original file line number Diff line number Diff line change 6262
6363 (is checkout-OK (str " Checkout failure " (checkout :err ) ))
6464
65- (doall (map (fn [key] (is (re-find (expected-patterns key) (actual-versions key))
65+ (doall (map (fn [key] (is (re-matches (expected-patterns key) (actual-versions key))
6666 (str " Testing " key " for commit '" commit-descr " '" )))
6767 (keys expected-patterns)))))
6868
9494 })
9595
9696 (assert-for-commit " dev commit 5"
97- {:build-version #"1.1.0-SNAPSHOT-3"
97+ {:build-version #"1.1.0-SNAPSHOT-3.* "
9898 :build-tag #"^1.1.0-SNAPSHOT$"
9999 :build-tag-delta #"3"
100100 :build-tstamp #"\d +"
You can’t perform that action at this time.
0 commit comments