mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	ZTS: Fix summary page creation again - second try
In PR #16599 I used 'return' like in C - which is wrong :/ This fix generates the summary as needed. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Tino Reichardt <milky-zfs@mcmilk.de> Closes #16611
This commit is contained in:
		
							parent
							
								
									03822a61be
								
							
						
					
					
						commit
						f019b445f3
					
				@ -11,12 +11,10 @@ function output() {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function outfile() {
 | 
					function outfile() {
 | 
				
			||||||
  test -s "$1" || return
 | 
					 | 
				
			||||||
  cat "$1" >> "out-$logfile.md"
 | 
					  cat "$1" >> "out-$logfile.md"
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function outfile_plain() {
 | 
					function outfile_plain() {
 | 
				
			||||||
  test -s "$1" || return
 | 
					 | 
				
			||||||
  output "<pre>"
 | 
					  output "<pre>"
 | 
				
			||||||
  cat "$1" >> "out-$logfile.md"
 | 
					  cat "$1" >> "out-$logfile.md"
 | 
				
			||||||
  output "</pre>"
 | 
					  output "</pre>"
 | 
				
			||||||
@ -45,6 +43,8 @@ if [ ! -f out-1.md ]; then
 | 
				
			|||||||
    tar xf "$tarfile"
 | 
					    tar xf "$tarfile"
 | 
				
			||||||
    test -s env.txt || continue
 | 
					    test -s env.txt || continue
 | 
				
			||||||
    source env.txt
 | 
					    source env.txt
 | 
				
			||||||
 | 
					    # when uname.txt is there, the other files are also ok
 | 
				
			||||||
 | 
					    test -s uname.txt || continue
 | 
				
			||||||
    output "\n## Functional Tests: $OSNAME\n"
 | 
					    output "\n## Functional Tests: $OSNAME\n"
 | 
				
			||||||
    outfile_plain uname.txt
 | 
					    outfile_plain uname.txt
 | 
				
			||||||
    outfile_plain summary.txt
 | 
					    outfile_plain summary.txt
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user