Skip to content

Commit

Permalink
kernel_patch_verify: Simplify the TMPDIR initialization
Browse files Browse the repository at this point in the history
We don't need to assign DEFAULT_TMPDIR by just using TEST_B_DIR
initialization.

Signed-off-by: Nishanth Menon <[email protected]>
  • Loading branch information
nmenon committed Aug 6, 2024
1 parent bcd153d commit 3f14f65
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions kernel_patch_verify
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ APPS_NEEDED="perl make dtc sparse patch git realpath basename codespell"
# Use all max num CPUs
KM_CPUS=$(grep -c '^processor' /proc/cpuinfo)
LOG_FILE="./report-kernel-patch-verify.txt"
DEFAULT_TMPDIR="/tmp"
TEST_B_DIR="/tmp"

COVER_LETTER="cover-letter.[patch\|diff]"

Expand Down Expand Up @@ -751,7 +751,7 @@ usage() {
"-V: (default armV8 targets) if not already defined, use CROSS_COMPILE=$DEF_V8_CROSS_COMPILE, ARCH=$DEF_V8_ARCH, and builds for '$KP_TARGETS $DEF_V8_BUILDTARGETS' build targets" \
"-j CPUs: override default CPUs count with build (default is $KM_CPUS)" \
"-B build_target: override default build target and use provided build_target" \
"-T temp_dir_base: temporary directory base (default is $DEFAULT_TMPDIR)" \
"-T temp_dir_base: temporary directory base (default is $TEST_B_DIR)" \
"-l logfile: report file (defaults to $LOG_FILE)" \
"-L Use llvm to build 'LLVM=1 CC='$ccache clang''" \
"-C: run Complete tests(WARNING: could take significant time!)" \
Expand Down Expand Up @@ -971,10 +971,6 @@ if ! check_missing_application; then
exit 2
fi

if [ -z "$TEST_B_DIR" ]; then
TEST_B_DIR=$DEFAULT_TMPDIR
fi

TEST_BRANCH_NAME=kernel-patch-verify.$RANDOM
TEST_DIR=$TEST_B_DIR/$TEST_BRANCH_NAME
PATCHD=$TEST_DIR/patches
Expand Down

0 comments on commit 3f14f65

Please sign in to comment.