From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7008446828784910336 X-Received: by 2002:a2e:4a19:: with SMTP id x25mr7008275lja.114.1633020360501; Thu, 30 Sep 2021 09:46:00 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6512:324d:: with SMTP id c13ls1167407lfr.0.gmail; Thu, 30 Sep 2021 09:45:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxc63ACldLX2GkISqbBeH8VnT6jQQrY7wsJ/SPFE+Z95lXBSUo0TKcsB7eDi7osCNPLNJzp X-Received: by 2002:a05:6512:3045:: with SMTP id b5mr203670lfb.259.1633020359637; Thu, 30 Sep 2021 09:45:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633020359; cv=none; d=google.com; s=arc-20160816; b=pIOQ4dVx+I1cTh+bkdvQznovpeIh1E9jCULZx212zsQH43fhnIHuUiaShLHv/vaix1 xw57swGhMVIOBFCXnxj/iPksgzsHAHhffujVsOggE6i0xQmhrNzGp1FvtAGtsvzQcgMl p+YAVpHDjKgfTZ+SRSvmAy7PqoaMXBiAP7WkViQd6/JWOpNjy7K+qNUiYzeHjBYHu2Rm crsNeDDO5Rrhl+Y9Ucfi5bNlOFaCgUtT7maxip/mBsXRyj9OGYnJdzK0l8/gP2owrJ4Y Qh8NtcF2726EddXmPM+zHU8Tqjb/Y0yWKhVf661LrhTjiNpfTTn2VaIyzIKUBezLlCg1 2OLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from; bh=/H2ps4KPh4+qvsHmXhauA5Nli3YIN7Zcz6Z6E0X8knc=; b=NQVu815fg0RO+LlJi2AdZGZvij/fjM3nUM+K3akXyV3mO96rADC9IoG7lS58nQHuI8 /fuxeLFFvB4TMyfBETWLDi/WQfW3A0n2c3KYJyf0APd3493fuuvXFYehC9Nljdkr41dJ F92rkEM6Nf4mGRRg3MfmMlJPHBNClMScVIxI1Byl6HI9HtcEyZ4EVR1FOhKKLq5jrXQe SjnC2A32afoLYh0sJXrGtSxFArXDiZ6aAWWMpQ1NzAGN3itKd6isWPOE1pXvtOqRy9ag 3b+X6ItPEIkdy0jHr60haxyAaoB6Z2kX9AO6k4dZwa/ObG58jGxd2tesSDhgovdyBCnX ntxQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=softfail (google.com: domain of transitioning anton.mikanovich@promwad.com does not designate 85.214.156.166 as permitted sender) smtp.mailfrom=anton.mikanovich@promwad.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=promwad.com Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id d1si168808ljq.2.2021.09.30.09.45.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 Sep 2021 09:45:59 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning anton.mikanovich@promwad.com does not designate 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=softfail (google.com: domain of transitioning anton.mikanovich@promwad.com does not designate 85.214.156.166 as permitted sender) smtp.mailfrom=anton.mikanovich@promwad.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=promwad.com Received: from ws-323.promwad.corp (leased-line-st-87-252-252-30.telecom.by [87.252.252.30]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8) with ESMTPSA id 18UGjhud018892 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=NOT); Thu, 30 Sep 2021 18:45:56 +0200 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Anton Mikanovich Subject: [PATCH v14 05/16] vm_boot_test: Fix log file path in vm_boot_test Date: Thu, 30 Sep 2021 19:45:30 +0300 Message-Id: <1633020341-26062-6-git-send-email-anton.mikanovich@promwad.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1633020341-26062-1-git-send-email-anton.mikanovich@promwad.com> References: <1633020341-26062-1-git-send-email-anton.mikanovich@promwad.com> X-TUID: ID2UdjuhNmmd From: Anton Mikanovich 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.7.4