Commit 63430abe authored by Michal Berger's avatar Michal Berger Committed by Tomasz Zawadzki
Browse files

test: Create a hard copy instead of a symlink



I encountered some weird issue where tar, executed with -h, got hit
with a SEGV for some reason. It doesn't affect CI but let's mitigate
anyway.

Change-Id: I9c643f8c14c839b12016beb3757b202751a12006
Signed-off-by: default avatarMichal Berger <michal.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/21469


Reviewed-by: default avatarBen Walker <ben@nvidia.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJim Harris <jim.harris@samsung.com>
parent 70919924
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -84,11 +84,9 @@ build_rpm_from_gen_spec() {
	mkdir -p "$sourcedir" "$rpmdir" "$rpmbuilddir"

	# Prepare the source at the default location - default %prep step requires
	# extra dir inside the source package hence the dance with symlinking to
	# the repo (after the extraction source should be under spdk-$version/) -
	# make sure symlinking is done outside of the repo to avoid nasty loops.
	ln -s "$rootdir" "/tmp/spdk-$version"
	tar -czhf "$sourcedir/spdk-$version.tar.gz" -C /tmp "spdk-$version"
	# extra dir inside the source package.
	cp -r "$rootdir" "/tmp/spdk-$version"
	tar -czf "$sourcedir/spdk-$version.tar.gz" -C /tmp "spdk-$version"

	# See rpm.sh for details on the PYTHONPATH HACK
	PYTHONPATH="$(python3 -c "import sys; print('%s' % ':'.join(sys.path)[1:])")" \