Age | Commit message (Collapse) | Author | Files | Lines |
|
Change the binding to tell Subplot that an embedded file is referred
to. This silences a warning for correct scenarios, and that will soon
matter when warnings are errors by default.
Sponsored-by: author
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Sponsored-by: author
|
|
Keep related/similar steps together. Add comments to act as section
headings.
Sponsored-by: author
|
|
|
|
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Sponsored-by: author
|
|
Many of our bindings files were originally written before Subplot
supported simple patterns, and so they use regex patterns even when a
simple pattern would do. Simplify bindings to use simple patterns when
possible, to make life easier for future maintainers.
Sponsored-by: author
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
We inherit all the environment except we override a few variables
in order to provide some level of consistency.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
This allows the user to run all scenarios even if one fails.
Sponsored-by: author
|
|
Sponsored-by: pep.foundation
|
|
Sponsored-by: author
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Newer version of shellcheck complains about expanding an unused
variable, but since the code is actually only a snippet that will be
embedded in the generated output, this is OK.
Sponsored-by: author
|
|
bash template: Provice captures to cleanups
See merge request subplot/subplot!198
|
|
|
|
|
|
This doesn't materially change behaviour because words split the same
but it's unintentional and against the described behaviour.
|
|
|
|
This should hopefully avoid the previous version's pitfalls
by processing the environment line entirely in sed.
|
|
The template unpacks the embedded files into the datadir
before the scendir is created and chdir'd into.
Since dict_* assume that the files you want to read
are in the current directory this makes them unreadable.
Making them operate relative to datadir seemed
like the least complicated solution, compared to copying them in
or some kind of search path.
|
|
|
|
|
|
Sponsored-by: author
|
|
Sponsored-by: author
|
|
|
|
This commit fixes two intertwined problems:
1) with traditional netcat, `netcat -l 8888` treats "8888" as a host,
and never starts listening on port 8888.
This is fixed by replacing netcat with a Python script (as suggested
by Lars Wirzenius);
2) Subplot's test suite never notices the above problem because, even
though it fails to connect to the port, this error is intentionally
swallowed by `_daemon_start_soonish()`.
This is fixed by adding an explicit check to ensure that the daemon
started after all. Furthermore, the scenario description is reworded
to make it clear that we *do* expect the daemon to start, it'll just
take a while.
|
|
This has no functional effect, but makes linters happy. It is also
arguably the right thing to do.
Sponsored-by: author
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Sponsored-by: author
|
|
|
|
The previous code had trouble with environment variables that weren't
nice for shell. Using Python avoids this. Not an ideal solution, but I
can't be bothered do avoid Python now.
|
|
This adds the bindings and step implementations for running
commands in a directory off the datadir.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
Mostly this avoids writing very long lines. Long strings are broken
into multiple lines, logged separately. Various other values are also
logged as multiple log lines as well.
|
|
kwargs are logged as a dict. This helps me debug why reference.md fails.
|
|
|
|
This is a step in the right direction, but may not be enough. We'll
see.
Multi-line log messages are no multiple lines in in the log file. All
but the first one are indented.
Dictionaries are listed with one key per line. argv as one item per line.
Various log messages that are just noise removed.
|
|
feat(python lib/runcmd): run commands in sub-directory
Closes #175
See merge request larswirzenius/subplot!146
|
|
|
|
|
|
|
|
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
|
|
|
|
I don't know how this passed ./check previously. I might not have had
Black installed, maybe. Anyway, fixed now.
|