Skip to content

Commit

Permalink
tests: remove unneeded arg to get_val_basename()
Browse files Browse the repository at this point in the history
  • Loading branch information
gperciva committed Sep 9, 2020
1 parent 8d847a5 commit a1967ed
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/shared_test_functions.sh
Expand Up @@ -263,12 +263,11 @@ setup_check_variables() {
s_count=$((s_count + 1))
}

## get_val_basename (val_basename, exitfile):
## get_val_basename (exitfile):
# Return the filename without ".log" of the valgrind logfile corresponding to
# ${exitfile}.
get_val_basename() {
val_basename=$1
exitfile=$2
exitfile=$1
basename=$(basename "${exitfile}" ".exit")
echo "${out_valgrind}/${basename}"
}
Expand Down Expand Up @@ -341,7 +340,7 @@ check_valgrind_logfile() {
# empty string.
check_valgrind_basenames() {
exitfile="$1"
val_basename=$( get_val_basename ${val_log_basename} ${exitfile} )
val_basename=$( get_val_basename ${exitfile} )

# Get list of files to check. (Yes, the star goes outside the quotes.)
logfiles=$(ls "${val_basename}"* 2>/dev/null)
Expand Down

0 comments on commit a1967ed

Please sign in to comment.