From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6953642757724307456 X-Received: by 2002:a05:600c:2e42:: with SMTP id q2mr111885wmf.64.1619704385855; Thu, 29 Apr 2021 06:53:05 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6000:1287:: with SMTP id f7ls912147wrx.3.gmail; Thu, 29 Apr 2021 06:53:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwjSB23YSJKoHMG8N1s4hZEekyViXgxsqZcO7StujWHIwniJvbJ6EOOqTApCpsKJQcDAk1 X-Received: by 2002:a5d:525c:: with SMTP id k28mr27228590wrc.158.1619704385179; Thu, 29 Apr 2021 06:53:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619704385; cv=none; d=google.com; s=arc-20160816; b=cU8AwDOeCk+/LzyKwz2Wne7e+6ZeaRZ/q+rGwy1NaKAtdV2919j0n/+YGrzfgq9vM1 drBqbwOT6O+EydlTZKE2v9Yp65o0PQ3D+KAW+SADaTIhCrm8hLqZKbxIkSrh22CUXw+I a5kGtyOXkCFnP2jX/1dcjQatotNqjCeit5BOcJySsyUwHT6qRaV2apGZJ3Y3VPp2Zdso p2iedyptVdTFfs9YgH1jY5wdQ53tZZtZfO2HPWUtZGXJyVTyGfSJpqa1/BJZTJdpNM/5 dHmu1mcHYBE3TlzN6mc7Y+B37I4pIWe5XN1Z0Tov8Xx2jTcxpjPLS2AGKOMQ2plwLyhG KWag== 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=Fu/4Qi/IwmwubS0+xj87E13jKpmtlpAxRBZxSh0Xz4BkniBzq/p/53I2kDrs7OSr4p mikde9ovKF/XTZglzpq6XlCoLAGHUFhnich6VRhYdU+VI/y0vnmI3OZNfd3aYVwZBzhw +q44YbRH9DE4W9dJ52w8pwVx5Cyo8/BqFQx8XhOtSWdOPDQZ589yxiznJ4Kbmlvu4Cxt CuwjIWtM/fCTNGtOT/vpU3ofuYeLzWVHNzHufi6ZYCwlw+ovc9MGkitNSufb36cdepkG ge2y9ZzLPPFekkD9fyI7wDx386CUnCKM1N8vQWf4ot5kQZfxyGlL2+5a14ZMReJwwSGi rUnw== 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 c9si213939wml.2.2021.04.29.06.53.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 29 Apr 2021 06:53:05 -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-97-79-214-37.mgts.dynamic.pppoe.byfly.by [37.214.79.97] (may be forged)) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id 13TDqsYn029186 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 29 Apr 2021 15:53:04 +0200 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Anton Mikanovich Subject: [PATCH v5 05/15] vm_boot_test: Fix log file path in vm_boot_test Date: Thu, 29 Apr 2021 16:52:36 +0300 Message-Id: <20210429135246.78792-6-amikan@ilbers.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210429135246.78792-1-amikan@ilbers.de> References: <20210429135246.78792-1-amikan@ilbers.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: EVV7wAad3z+K 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