[master] 393040a3b vtc: Correctly indent u00020 with tabs

Walid Boudebouda walid.boudebouda at gmail.com
Tue Apr 15 12:53:05 UTC 2025


commit 393040a3b89316e5e7b5683ac92c491fd8022c9e
Author: Walid Boudebouda <walid.boudebouda at gmail.com>
Date:   Tue Apr 15 14:47:39 2025 +0200

    vtc: Correctly indent u00020 with tabs
    
    This caused the last shell block to always succeed because the EOF
    was taken as part of the file content, along with the diff command,
    which was therefore never executed

diff --git a/bin/varnishtest/tests/u00020.vtc b/bin/varnishtest/tests/u00020.vtc
index 84a8c71c3..795ad4e2d 100644
--- a/bin/varnishtest/tests/u00020.vtc
+++ b/bin/varnishtest/tests/u00020.vtc
@@ -48,24 +48,24 @@ varnish v1 -stop
 # Test things we receive from the backend
 
 server s1 {
-        rxreq
-        txresp -status 202 -hdr "beresp: origin" -hdr "unset: origin"
+	rxreq
+	txresp -status 202 -hdr "beresp: origin" -hdr "unset: origin"
 } -start
 
 varnish v1 -vcl+backend {
 
-        sub vcl_backend_response {
+	sub vcl_backend_response {
 		set beresp.http.beresp = "vbr-updated";
 		set beresp.status = 200;
 		unset beresp.http.unset;
-        }
+	}
 
 } -start
 
 
 client c1 {
-        txreq
-        rxresp
+	txreq
+	rxresp
 } -run
 
 
@@ -110,9 +110,9 @@ client c1 {
 } -run
 
 shell {
-        varnishncsa -n ${v1_name} -d -c -F '%s %{resp}o %{unset}o %{added}o' > ncsa_sc.txt
+	varnishncsa -n ${v1_name} -d -c -F '%s %{resp}o %{unset}o %{added}o' > ncsa_sc.txt
 
-        cat >expected_sc.txt <<-EOF
+	cat >expected_sc.txt <<-EOF
 	201 deliver-updated - deliver
 	EOF
 	diff -u expected_sc.txt ncsa_sc.txt
@@ -159,10 +159,10 @@ client c1 {
 
 
 shell {
-        varnishncsa -n ${v1_name} -d -c -F '%H %{reqhdr}i %{notreceived}i %{unset}i %m %q %U %u' > ncsa_rc.txt
+	varnishncsa -n ${v1_name} -d -c -F '%H %{reqhdr}i %{notreceived}i %{unset}i %m %q %U %u' > ncsa_rc.txt
 
-        cat >expected_rc.txt <<-EOF
+	cat >expected_rc.txt <<-EOF
 	HTTP/1.1 client-header - client POST ?q=clientQuerry /client-url client
-        EOF
-        diff -u expected_rc.txt ncsa_rc.txt
+	EOF
+	diff -u expected_rc.txt ncsa_rc.txt
 }


More information about the varnish-commit mailing list