Test/unit-tests: handle dot releases when parsing Source0
Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
		
							parent
							
								
									e61553bf7e
								
							
						
					
					
						commit
						61f524fc07
					
				| @ -16,7 +16,7 @@ sudo dnf builddep -y osbuild-composer.spec | ||||
| cd "${TMT_SOURCE_DIR}" | ||||
| 
 | ||||
| # Extract the Source0 basename without extension | ||||
| SRC_DIR=$(spectool --source 0 osbuild-composer.spec | sed 's/.\+\(osbuild-composer-[0-9]\+\)\.tar\.gz/\1/') | ||||
| SRC_DIR=$(spectool --source 0 osbuild-composer.spec | sed -E 's|.*/([^/]*)\.tar\.gz$|\1|') | ||||
| 
 | ||||
| # Move to the extracted sources directory (patches are applied by default) | ||||
| cd "${SRC_DIR}" | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user