public inbox for gdb-testers@sourceware.org help / color / mirror / Atom feed
From: gdb-buildbot@sergiodj.net To: gdb-testers@sourceware.org Subject: [binutils-gdb] gdb/copyright.py: Exit if run from the wrong directory Date: Wed, 01 Jan 2020 07:46:00 -0000 [thread overview] Message-ID: <5fb651f2ddd54a1d3da6fcd172d9fab81893bbf9@gdb-build> (raw) *** TEST RESULTS FOR COMMIT 5fb651f2ddd54a1d3da6fcd172d9fab81893bbf9 *** commit 5fb651f2ddd54a1d3da6fcd172d9fab81893bbf9 Author: Joel Brobecker <brobecker@adacore.com> AuthorDate: Wed Jan 1 09:08:08 2020 +0400 Commit: Joel Brobecker <brobecker@adacore.com> CommitDate: Wed Jan 1 09:11:56 2020 +0400 gdb/copyright.py: Exit if run from the wrong directory We printed an error, but kept going anyway... ;-) gdb/ChangeLog: * copyright.py (main): Exit if run from the wrong directory. diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6a4d26939b..ca7960111f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2020-01-01 Joel Brobecker <brobecker@adacore.com> + + * copyright.py (main): Exit if run from the wrong directory. + 2020-01-01 Joel Brobecker <brobecker@adacore.com> * top.c (print_gdb_version): Change copyright year to 2020. diff --git a/gdb/copyright.py b/gdb/copyright.py index 84ead523ee..7771d9d7f6 100644 --- a/gdb/copyright.py +++ b/gdb/copyright.py @@ -34,6 +34,7 @@ import datetime import os import os.path import subprocess +import sys def get_update_list(): @@ -143,6 +144,8 @@ def main (): """The main subprogram.""" if not os.path.isfile("gnulib/import/extra/update-copyright"): print "Error: This script must be called from the gdb directory." + sys.exit(1) + root_dir = os.path.dirname(os.getcwd()) os.chdir(root_dir)
next reply other threads:[~2020-01-01 7:46 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-01-01 7:46 gdb-buildbot [this message] 2020-01-01 7:46 ` Failures on Ubuntu-Aarch64-native-extended-gdbserver-m64, branch master gdb-buildbot 2020-01-01 8:05 ` Failures on Fedora-i686, " gdb-buildbot 2020-01-01 8:28 ` Failures on Fedora-x86_64-m64, " gdb-buildbot 2020-01-01 8:45 ` Failures on Fedora-x86_64-native-extended-gdbserver-m32, " gdb-buildbot 2020-01-01 8:56 ` Failures on Fedora-x86_64-native-extended-gdbserver-m64, " gdb-buildbot 2020-01-01 8:56 ` Failures on Fedora-x86_64-native-gdbserver-m32, " gdb-buildbot 2020-01-01 9:07 ` Failures on Fedora-x86_64-native-gdbserver-m64, " gdb-buildbot
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=5fb651f2ddd54a1d3da6fcd172d9fab81893bbf9@gdb-build \ --to=gdb-buildbot@sergiodj.net \ --cc=gdb-testers@sourceware.org \ /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: linkBe 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; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).