Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up dummy-ups code, behavior and logs; added NUT_DEBUG_PID option #2118

Merged
merged 21 commits into from
Oct 19, 2023
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
33a97c8
drivers/dummy-ups.c: clarify some debug messages
jimklimov Oct 18, 2023
c994849
drivers/dummy-ups.c: clarify a nested if/elif/... tree
jimklimov Oct 18, 2023
834bfb9
drivers/dummy-ups.c: reconcile method prototype with implem
jimklimov Oct 18, 2023
f5b495f
drivers/dummy-ups.c: clarify that "upsfd" is not really used in file-…
jimklimov Oct 18, 2023
1956b01
drivers/dummy-ups.c: use better-qualified "fn" rather than potentiall…
jimklimov Oct 18, 2023
45da143
drivers/dummy-ups.c: refactor prepare_filepath() into one helper method
jimklimov Oct 18, 2023
4dc9eae
drivers/dummy-ups.c: avoid blank line in debug logs
jimklimov Oct 18, 2023
76e2939
drivers/dummy-ups.c: bump (C) and version due to recent changes
jimklimov Oct 18, 2023
2db24c3
tests/NIT/nit.sh: better filter the processes we look at after sandbo…
jimklimov Oct 18, 2023
664097b
tests/NIT/nit.sh: testcase_sandbox_start_drivers_after_upsd(): bump t…
jimklimov Oct 18, 2023
06eb71f
tests/NIT/nit.sh: testcase_sandbox_start_drivers_after_upsd(): fix ma…
jimklimov Oct 18, 2023
2bca73b
tests/NIT/nit.sh: tag progress/report messages emitted by test cases …
jimklimov Oct 18, 2023
861b50e
tests/NIT/nit.sh: report driver PIDs when debugging
jimklimov Oct 18, 2023
9fbb5a7
tests/NIT/nit.sh: sandbox_start_drivers(): report success or failure
jimklimov Oct 18, 2023
21fe028
common/common.c: optionally support NUT_DEBUG_PID envvar presence to …
jimklimov Oct 18, 2023
ecc5031
tests/NIT/nit.sh: use NUT_DEBUG_PID envvar to help test-log readability
jimklimov Oct 18, 2023
7a30529
tests/NIT/nit.sh: use log_separator() before sandbox_forget_configs()…
jimklimov Oct 18, 2023
ec9172e
tests/NIT/nit.sh: tag more progress messages with respective testcase…
jimklimov Oct 18, 2023
72c985d
tests/NIT/nit.sh: testcase_sandbox_nutscanner_list(): fix reporting
jimklimov Oct 18, 2023
7701368
tests/NIT/nit.sh: avoid printing "Error:..." in successful cases
jimklimov Oct 18, 2023
71710c2
GitIgnore .ci*.txt* if some are left over in the NUT CI farm work area
jimklimov Oct 19, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
drivers/dummy-ups.c: reconcile method prototype with implem
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
  • Loading branch information
jimklimov committed Oct 18, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 834bfb983dd8a52cc1518631505fd1ddbdc2c83a
2 changes: 1 addition & 1 deletion drivers/dummy-ups.c
Original file line number Diff line number Diff line change
@@ -98,7 +98,7 @@ static struct stat datafile_stat;

static int setvar(const char *varname, const char *val);
static int instcmd(const char *cmdname, const char *extra);
static int parse_data_file(TYPE_FD upsfd);
static int parse_data_file(TYPE_FD arg_upsfd);
static dummy_info_t *find_info(const char *varname);
static int is_valid_data(const char* varname);
static int is_valid_value(const char* varname, const char *value);