public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Uladzimir Bely <ubely@ilbers.de>
To: isar-users@googlegroups.com
Subject: [PATCH v2 1/1] ci: make vm_start logs readable by all users
Date: Wed, 12 Jan 2022 13:42:40 +0100	[thread overview]
Message-ID: <20220112124240.25183-2-ubely@ilbers.de> (raw)
In-Reply-To: <20220112124240.25183-1-ubely@ilbers.de>

This changes permissions for ${BUILD_DIR}/vm_start_.*_log.txt to 644
to make them readable not only by CI user.

Virtual machine boot log files have 0600 permissions by default. This is
a feature of all functions from Python's 'tempfile' module used.

The only way to change permissions is using a particular call of 'chmod'.

Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
---
 testsuite/vm_boot_test/vm_boot_test.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testsuite/vm_boot_test/vm_boot_test.py b/testsuite/vm_boot_test/vm_boot_test.py
index 01623c5c..69e7f4ae 100644
--- a/testsuite/vm_boot_test/vm_boot_test.py
+++ b/testsuite/vm_boot_test/vm_boot_test.py
@@ -46,6 +46,7 @@ class VmBase(Test):
         fd, output_file = tempfile.mkstemp(suffix='_log.txt',
                                            prefix='vm_start_' + distro + '_' +
                                            arch + '_', dir=build_dir, text=True)
+        os.chmod(output_file, 0o644)
 
         cmdline = start_vm.format_qemu_cmdline(arch, build_dir, distro,
                                                output_file, None)
-- 
2.20.1


  reply	other threads:[~2022-01-12 12:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-12 12:42 [PATCH v2 0/1] " Uladzimir Bely
2022-01-12 12:42 ` Uladzimir Bely [this message]
2022-01-19  6:29 ` Anton Mikanovich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220112124240.25183-2-ubely@ilbers.de \
    --to=ubely@ilbers.de \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox