diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-05-17 14:58:26 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-05-17 14:58:26 -0400 |
commit | 5277208d3291cf9e4ffae4ebd90b726998f3f6d4 (patch) | |
tree | 81c20ab13e41d76665103c7f96c0bb4e4313706c /gdb | |
parent | 91e159e93b273af462b9999122af9a69980d88e1 (diff) | |
download | fsf-binutils-gdb-5277208d3291cf9e4ffae4ebd90b726998f3f6d4.zip fsf-binutils-gdb-5277208d3291cf9e4ffae4ebd90b726998f3f6d4.tar.gz fsf-binutils-gdb-5277208d3291cf9e4ffae4ebd90b726998f3f6d4.tar.bz2 |
gdb/testsuite: rename .py.in files to .py
I noticed these files because they weren't considered by black for
reformatting, prior to adding pyproject.toml, because their extension is
not .py. I don't think they specifically need to be named .py.in, so I
suggest renaming them to .py. This will make it nicer to edit them, as
editors will recognize them more easily as Python files.
Perhaps this was needed before, when the testsuite didn't always put
output files in the output directory. Then, a different name for the
source and destination file might have been desirable to avoid
overwriting a file with itself (perhaps that wasn't well handled). But
in any case, it doesn't see to cause any problem now.
gdb/testsuite/ChangeLog:
* gdb.python/py-framefilter-gdb.py.in: Rename to:
* gdb.python/py-framefilter-gdb.py: ... this.
* gdb.python/py-framefilter-invalidarg-gdb.py.in: Rename to:
* gdb.python/py-framefilter-invalidarg-gdb.py: ... this.
Change-Id: I63bb94010bbbc33434ee1c91a386c91fc1ff80bc
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-framefilter-gdb.py (renamed from gdb/testsuite/gdb.python/py-framefilter-gdb.py.in) | 0 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-framefilter-invalidarg-gdb.py (renamed from gdb/testsuite/gdb.python/py-framefilter-invalidarg-gdb.py.in) | 0 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-framefilter-invalidarg.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-framefilter.exp | 4 |
5 files changed, 10 insertions, 3 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 69d00ff..95f5536 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,12 @@ 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca> + * gdb.python/py-framefilter-gdb.py.in: Rename to: + * gdb.python/py-framefilter-gdb.py: ... this. + * gdb.python/py-framefilter-invalidarg-gdb.py.in: Rename to: + * gdb.python/py-framefilter-invalidarg-gdb.py: ... this. + +2021-05-17 Simon Marchi <simon.marchi@polymtl.ca> + * gdb.python/py-framefilter-gdb.py.in: Re-format. * gdb.python/py-framefilter-invalidarg-gdb.py.in: Re-format. diff --git a/gdb/testsuite/gdb.python/py-framefilter-gdb.py.in b/gdb/testsuite/gdb.python/py-framefilter-gdb.py index d2205f4..d2205f4 100644 --- a/gdb/testsuite/gdb.python/py-framefilter-gdb.py.in +++ b/gdb/testsuite/gdb.python/py-framefilter-gdb.py diff --git a/gdb/testsuite/gdb.python/py-framefilter-invalidarg-gdb.py.in b/gdb/testsuite/gdb.python/py-framefilter-invalidarg-gdb.py index e27b898..e27b898 100644 --- a/gdb/testsuite/gdb.python/py-framefilter-invalidarg-gdb.py.in +++ b/gdb/testsuite/gdb.python/py-framefilter-invalidarg-gdb.py diff --git a/gdb/testsuite/gdb.python/py-framefilter-invalidarg.exp b/gdb/testsuite/gdb.python/py-framefilter-invalidarg.exp index 86f3056..58b06d8 100644 --- a/gdb/testsuite/gdb.python/py-framefilter-invalidarg.exp +++ b/gdb/testsuite/gdb.python/py-framefilter-invalidarg.exp @@ -40,7 +40,7 @@ if { [skip_python_tests] } { continue } # gdb will find it. set remote_obj_python_file \ [remote_download \ - host ${srcdir}/${subdir}/${testfile}-gdb.py.in \ + host ${srcdir}/${subdir}/${testfile}-gdb.py \ [standard_output_file ${testfile}-gdb.py]] gdb_reinitialize_dir $srcdir/$subdir diff --git a/gdb/testsuite/gdb.python/py-framefilter.exp b/gdb/testsuite/gdb.python/py-framefilter.exp index a9c6ca6..7fbb4fc 100644 --- a/gdb/testsuite/gdb.python/py-framefilter.exp +++ b/gdb/testsuite/gdb.python/py-framefilter.exp @@ -41,7 +41,7 @@ gdb_test "info frame-filter" \ # Care is taken to put it in the same directory as the binary so that # gdb will find it. set remote_obj_python_file \ - [gdb_remote_download host ${srcdir}/${subdir}/${testfile}-gdb.py.in \ + [gdb_remote_download host ${srcdir}/${subdir}/${testfile}-gdb.py \ ${testfile}-gdb.py] gdb_reinitialize_dir $srcdir/$subdir @@ -299,7 +299,7 @@ if { [skip_python_tests] } { continue } # Care is taken to put it in the same directory as the binary so that # gdb will find it. set remote_obj_python_file \ - [gdb_remote_download host ${srcdir}/${subdir}/${testfile}-gdb.py.in \ + [gdb_remote_download host ${srcdir}/${subdir}/${testfile}-gdb.py \ ${testfile}-gdb.py] gdb_reinitialize_dir $srcdir/$subdir |