From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7008446828784910336 X-Received: by 2002:a5d:5981:: with SMTP id n1mr27803084wri.82.1632740546457; Mon, 27 Sep 2021 04:02:26 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a7b:c8c2:: with SMTP id f2ls10372546wml.2.canary-gmail; Mon, 27 Sep 2021 04:02:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZHSk/l4JPhC/DBndmqljdlspIentIzPmHrRCVrT4YW1nhhP6oJolXtlnSHCTl4rcQzQ+V X-Received: by 2002:a05:600c:3548:: with SMTP id i8mr15063898wmq.106.1632740545594; Mon, 27 Sep 2021 04:02:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632740545; cv=none; d=google.com; s=arc-20160816; b=Lb3Dj8U16rq6Wb7noo/VwzH2IFtih9Y2FUBWyljsi5Mxoljah5/5Li6TQj61AzUr/9 9+I1hy4uHtG8fHNlvQXaCEJFd1U4iqSTuE5pexpe79QnZsKVMX/+0Zjyp9x+pbZ00YKh GnITJyXNXf42yZ32ND/be+JSAln/JRjnME6eYJl2enuZla8NysOuJNKdqn/uAS2GCclu ye0hAriYZ3B6xs5irtyFplqb96i3HtvQ/W5bCBJBKmQsKg3bj288K429BPhODwc79Llj KZKrDux24YRmHHvkbScm29DemB7/aUxb2hxu02fERGRSTlDoP2kEA2IUBTO6vjq3yDc8 TUvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=rFqNh78TdU3ZFL1VrLoGFooIlyJvUbZstmw9S9VIYoc=; b=ZFRGM7QCqUUIt/JWs8XoIHmfJe+BSglFZh0PNVVecs+3faTCCGesrsI6op121DxPPT I07bPMD1qaYs/0bSc75G2Y0aVitFJM8sBK76Sw/a7VDohV2MbOPHUSTXF6pL2yKcNNn+ x7w6w7T+ziPCntfl8LCYYilIHxx4pGe1Q4bPvE9KIDqq8h0UD95PBeWHJI384WXl0C9K FdhC2EOrB56ApQljuMZqBc9a7BIKXyl+rPt/gecqT3B6fU8TYd3kqvINk/7/X/7A38iR Sl4q+B5MULj3H6dnJg5FmlEOV+PANVqWf4OynwJstsOk932+i6eVFoZNFAmLi3bD+mr5 G0eg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id l11si868505wmg.0.2021.09.27.04.02.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Sep 2021 04:02:25 -0700 (PDT) Received-SPF: pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from localhost.localdomain (mm-59-42-214-37.mgts.dynamic.pppoe.byfly.by [37.214.42.59] (may be forged)) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id 18RB25do004256 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 27 Sep 2021 13:02:23 +0200 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Anton Mikanovich Subject: [PATCH v13 05/16] vm_boot_test: Fix log file path in vm_boot_test Date: Mon, 27 Sep 2021 14:01:45 +0300 Message-Id: <20210927110157.11291-6-amikan@ilbers.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210927110157.11291-1-amikan@ilbers.de> References: <20210927110157.11291-1-amikan@ilbers.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUID: yOSTh/Hx7nUK Make log filename random and store it in build folder. Signed-off-by: Anton Mikanovich --- testsuite/vm_boot_test/vm_boot_test.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/testsuite/vm_boot_test/vm_boot_test.py b/testsuite/vm_boot_test/vm_boot_test.py index 96e02f7..64dfda6 100644 --- a/testsuite/vm_boot_test/vm_boot_test.py +++ b/testsuite/vm_boot_test/vm_boot_test.py @@ -4,6 +4,7 @@ import os import subprocess32 import sys import time +import tempfile from os.path import dirname sys.path.append(dirname(__file__) + '/..') @@ -26,9 +27,9 @@ class VmBootTest(Test): self.log.info('Isar build folder is: ' + build_dir) self.log.info('===================================================') - output_file = '/tmp/vm_boot_test.log' - if os.path.exists(output_file): - os.remove(output_file) + fd, output_file = tempfile.mkstemp(suffix='_log.txt', + prefix='vm_start_' + distro + '_' + + arch + '_', dir=build_dir, text=True) cmdline = start_vm.format_qemu_cmdline(arch, build_dir, distro, output_file, None) -- 2.25.1