Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1nd1DE-0003lm-Na for mharc-grub-devel@gnu.org; Fri, 08 Apr 2022 22:52:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42300) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nd1DD-0003iN-0Q for grub-devel@gnu.org; Fri, 08 Apr 2022 22:52:31 -0400 Received: from mail-qk1-x72f.google.com ([2607:f8b0:4864:20::72f]:40748) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nd1DB-0002bd-Gl for grub-devel@gnu.org; Fri, 08 Apr 2022 22:52:30 -0400 Received: by mail-qk1-x72f.google.com with SMTP id bk12so6273092qkb.7 for ; Fri, 08 Apr 2022 19:52:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XPRmvDmCTkUIqTF1IQ8Sne2DfS7iYlJX0G+k4Ylk8Go=; b=xYpM4UYcKv+D6Brx6H3ru3QKL+7UWQ7QpvdLlDcK6iBbRwHZxZpA4Yw7PiSmUeUrPn c53e0BfxO+l1Mtiz041VWgblNezLbMPpzRzceqUO5cPMDwSWaRRVSEORR85Oo5dp7kh+ eR528IV+vHAS8OqRRlNaL21l37sklM0ulQBI+tZzDvq5OjVP7YvsHesEdzkGHt20g8lP LscOwq+AiUThNE2Er3ut+fjTgi+bGoRE4faNLoZxnFnP2EeZCzRxVhdwTutJ+cna5JLB d4BsWTESQPmD/a/xiq6P0m4PIsGfKh5Jm1dy6H1c/4O+IXM3oUpcGQbETQAc4LpA5O2t U0Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XPRmvDmCTkUIqTF1IQ8Sne2DfS7iYlJX0G+k4Ylk8Go=; b=bs5lDx2Kp/3BEWalx0hBF2gtOOnMB2vnlwv6QuaHl0eZ4Jn8RadcY3vnNZkXqTZ02u 582ZJE0YebIUtlkF2GOvxzcLVWtgjvilNV5fRJGnEL3Z7yeRnDFXGCZFeR3p/qLljoEy uAhrnlBDfaTbXfUcuRf+DFSBXRrKs6KNxNbOqOsD2uNbiORd8f7mx/UZ6+EUZ0goc1+d jB2p6S8vThxdM/fh7YClxwZXVTJB4Frmdv2FOO21wDBBvEVDz9CgOL7UG903uwlVHq4e OeTnondypIg7+3E/kSatFCmP4AUFGt0fbsugQguuwJMeqrs6QELFaVp4yVXMiVcukt/R /drw== X-Gm-Message-State: AOAM531Tschn93Y2v3Pjrt0Pj63kZH/sJWlUQ7+c5bHzPZca7iDPGf5w UWQScSv/0mJRzSWz/lbDlJ2dPw== X-Google-Smtp-Source: ABdhPJziZ4fRbAuDzws3/3S5TiwXWcYdahYgTgnCl5otIyz2bf0no27rL+eCY/x/cO9TaFivyigRQw== X-Received: by 2002:a37:9204:0:b0:69b:f7ea:4638 with SMTP id u4-20020a379204000000b0069bf7ea4638mr645037qkd.77.1649472748619; Fri, 08 Apr 2022 19:52:28 -0700 (PDT) Received: from localhost.localdomain ([185.220.103.12]) by smtp.gmail.com with ESMTPSA id x20-20020ac85f14000000b002e1ee1c56c3sm20123479qta.76.2022.04.08.19.52.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 19:52:28 -0700 (PDT) From: Glenn Washburn To: Daniel Kiper , grub-devel@gnu.org Cc: Glenn Washburn Subject: [PATCH 2/2] tests: Give grub-fs-tester temp directory a better name Date: Sat, 9 Apr 2022 02:44:47 +0000 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::72f; envelope-from=development@efficientek.com; helo=mail-qk1-x72f.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Apr 2022 02:52:31 -0000 Instead of "tmp" the name is prefixed by the name of the scripts (eg. grub-fs-tester). A timestamp is added in the name to allow for easily seeing a chronological sorting of runs and the name of the filesystem being tested. The random component is set to the minimal possible, 3 characters, because the timestamp should provide enough uniqueness. Signed-off-by: Glenn Washburn --- tests/util/grub-fs-tester.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/util/grub-fs-tester.in b/tests/util/grub-fs-tester.in index 868199109f..02edcf897f 100644 --- a/tests/util/grub-fs-tester.in +++ b/tests/util/grub-fs-tester.in @@ -7,7 +7,7 @@ fs="$1" GRUBFSTEST="@builddir@/grub-fstest" -tempdir=`mktemp -d "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` || +tempdir=`mktemp -d "${TMPDIR:-/tmp}/${0##*/}.$(date '+%Y%m%d%H%M%S%N').${fs}.XXX"` || { echo "Failed to make temporary directory"; exit 99; } # xorriso -as mkisofs options to ignore locale when processing file names and -- 2.25.1