REGTESTS: Use `feature cmd` for 2.5+ tests (2)
This patch effectively is identical to 7ba98480cc5b2ede0fd4cca162959f66beb82c82.
diff --git a/reg-tests/http-messaging/http_transfer_encoding.vtc b/reg-tests/http-messaging/http_transfer_encoding.vtc
index 543e965..258b8a9 100644
--- a/reg-tests/http-messaging/http_transfer_encoding.vtc
+++ b/reg-tests/http-messaging/http_transfer_encoding.vtc
@@ -1,7 +1,7 @@
varnishtest "A test to validate Transfer-Encoding header conformance to the spec"
-feature ignore_unknown_macro
-#REQUIRE_VERSION=2.5
+feature cmd "$HAPROXY_PROGRAM -cc 'version_atleast(2.5-dev0)'"
+feature ignore_unknown_macro
server s1 {
rxreq
diff --git a/reg-tests/http-messaging/srv_ws.vtc b/reg-tests/http-messaging/srv_ws.vtc
index bce12f6..32369a1 100644
--- a/reg-tests/http-messaging/srv_ws.vtc
+++ b/reg-tests/http-messaging/srv_ws.vtc
@@ -3,11 +3,10 @@
varnishtest "h2 backend websocket management via server keyword"
+feature cmd "$HAPROXY_PROGRAM -cc 'version_atleast(2.5-dev0)'"
+feature cmd "$HAPROXY_PROGRAM -cc 'feature(OPENSSL)'"
feature ignore_unknown_macro
-#REQUIRE_VERSION=2.5
-#REQUIRE_OPTION=OPENSSL
-
# haproxy server
haproxy hapsrv -conf {
defaults