From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6953642757724307456 X-Received: by 2002:a2e:5816:: with SMTP id m22mr13231170ljb.366.1619021129235; Wed, 21 Apr 2021 09:05:29 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:9b88:: with SMTP id z8ls542464lji.2.gmail; Wed, 21 Apr 2021 09:05:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwOS0u8w23f/MMClEptI7+po69gD36/RqIh8GGQ//bYFh/Hz8FgpLokZgXFKmloHgvQpub X-Received: by 2002:a2e:9f09:: with SMTP id u9mr15649127ljk.388.1619021128011; Wed, 21 Apr 2021 09:05:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619021128; cv=none; d=google.com; s=arc-20160816; b=TfMWVP8nDCSaX3mMCN8sjtB45kqaGadhHI/wb/4KqimKZobxjEanNjJwmuCaXv5NlA ZJUF/P147tYmKk9eiXaTNDGhR163Surg6nwHNqajz2gW/50JKiVO6ibdUYwnGp67TpNA 4z+V2WQWoxbJULNVJZEX6J8kiiEYFUZICCt2WSweYM3ronHoPwS3Rtzpy5ms6ec+rVDE xRDJi5DdKGJmIvegDH5YJICty6DhfSo3lo7ka+gH3M8qMvAkDja/xnO/coGKKzXEvwSu yS2dqNX1a89AUQzcAfCbsv5slAbjEnNhquzDGfMcONgdYTOA907sebrRl3JDsuaIrr7x QMFQ== 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=jX2hJ05+6E3Wnb9zytIDOIc6bPzTDeG9HIGFsoXJTVs+WB/ONzv8oL52/5Kul3UeI0 EfwYmDuhs2tamIQpyST2ZIw+TAZ92irJv7xWSLGRvSFeBaHOOYNLc9fPMcvBFYge0s6c GxA9KYq6n0K+oAtutvoahonR0hOG8f4uMbgWQ3L/vYY9RIbUEegqfxkT5on7yoJP+Qas nM5ymiOUUI0eVssKR01WFDDpvqrcwZkyDGfna1qn9xFLSPZ8E+7l2asGflPgN0E/NBkY dqJBvFQ50B39LmSrMWVwbVjE4yBd1E/Jcc2n5idLbAfbamDaf2bdaGveJ7UPb2GmNjTV 7e+A== 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 j7si255588ljc.6.2021.04.21.09.05.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Apr 2021 09:05:28 -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-153-39-214-37.mgts.dynamic.pppoe.byfly.by [37.214.39.153] (may be forged)) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id 13LG5C74027472 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 21 Apr 2021 18:05:27 +0200 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Anton Mikanovich Subject: [PATCH v4 04/14] vm_boot_test: Fix log file path in vm_boot_test Date: Wed, 21 Apr 2021 19:04:55 +0300 Message-Id: <20210421160505.67194-5-amikan@ilbers.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210421160505.67194-1-amikan@ilbers.de> References: <20210421160505.67194-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: 0YQx1SgFuOVT 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