lkml.org 
[lkml]   [2023]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH memory-model scripts 21/31] tools/memory-model: Fix scripting --jobs argument
    Date
    The parseargs.sh regular expression for the --jobs argument incorrectly
    requires that the number of jobs be at least 10, that is, have at least
    two digits. This commit therefore adjusts this regular expression to
    allow single-digit numbers of jobs to be specified.

    Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
    ---
    tools/memory-model/scripts/parseargs.sh | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/tools/memory-model/scripts/parseargs.sh b/tools/memory-model/scripts/parseargs.sh
    index 5f016fc3f3af..25a81ac0dfdf 100755
    --- a/tools/memory-model/scripts/parseargs.sh
    +++ b/tools/memory-model/scripts/parseargs.sh
    @@ -113,7 +113,7 @@ do
    LKMM_JOBS="`echo $njobs | sed -e 's/^\([0-9]\+\).*$/\1/'`"
    ;;
    --jobs|--job|-j)
    - checkarg --jobs "(number)" "$#" "$2" '^[1-9][0-9]\+$' '^--'
    + checkarg --jobs "(number)" "$#" "$2" '^[1-9][0-9]*$' '^--'
    LKMM_JOBS="$2"
    shift
    ;;
    --
    2.40.0.rc2
    \
     
     \ /
      Last update: 2023-03-27 01:10    [W:7.825 / U:1.380 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site