Commit 12fc2abf authored by Michal Berger's avatar Michal Berger Committed by Konrad Sztyber
Browse files

test: Remove autopackage.sh



It was kept only for legacy reasons to handle the last call to
timing_finish(). Since build_release is already self-contained and
executed within a separate, dedicated job we can move timing_finish()
where it belongs, i.e., to autorun.sh.

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


Reviewed-by: default avatarKonrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: default avatarJim Harris <jim.harris@samsung.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Community CI Samsung <spdk.community.ci.samsung@gmail.com>
parent 83ba9086
Loading
Loading
Loading
Loading

autopackage.sh

deleted100755 → 0
+0 −14
Original line number Diff line number Diff line
#!/usr/bin/env bash
#  SPDX-License-Identifier: BSD-3-Clause
#  Copyright (C) 2015 Intel Corporation
#  All rights reserved.
#

rootdir=$(readlink -f $(dirname $0))
source "$rootdir/test/common/autobuild_common.sh"

if [[ $SPDK_TEST_RELEASE_BUILD -eq 1 ]]; then
	build_release
fi

timing_finish
+2 −6
Original line number Diff line number Diff line
@@ -16,17 +16,13 @@ if [[ ! -f $conf ]]; then
	echo "ERROR: $conf doesn't exist"
	exit 1
fi
source "$rootdir/test/common/autotest_common.sh"
source "$conf"

echo "Test configuration:"
cat "$conf"
trap 'timing_finish || exit 1' EXIT

# Runs agent scripts
$rootdir/autobuild.sh "$conf"
if ((SPDK_TEST_UNITTEST == 1 || SPDK_RUN_FUNCTIONAL_TEST == 1)); then
	sudo -E $rootdir/autotest.sh "$conf"
fi

if [[ $SPDK_TEST_AUTOBUILD != 'tiny' ]]; then
	$rootdir/autopackage.sh "$conf"
fi
+2 −0
Original line number Diff line number Diff line
@@ -733,6 +733,8 @@ function timing_exit() {
}

function timing_finish() {
	[[ -e $output_dir/timing.txt ]] || return 0

	flamegraph='/usr/local/FlameGraph/flamegraph.pl'
	[[ -x "$flamegraph" ]] || return 1