diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-11-12 13:12:09 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-12 13:12:09 +0900 |
commit | fd5ef45eab250f89f80f6f6afafb85b8b98cdf10 (patch) | |
tree | 17a4b2d1c94b9c0a60b0e4e1a6cd943fa76dacb6 /src/test | |
parent | 5fb0720ebbf8813696b095806581a937a345cf2c (diff) | |
parent | 110a13202eab6d92678abcde08372d4afac1cc45 (diff) | |
download | systemd-fd5ef45eab250f89f80f6f6afafb85b8b98cdf10.tar.gz systemd-fd5ef45eab250f89f80f6f6afafb85b8b98cdf10.tar.bz2 systemd-fd5ef45eab250f89f80f6f6afafb85b8b98cdf10.zip |
Merge pull request #10694 from evverx/udev-test-in-container
udev-test: remove a check for whether the test is run in a container
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test-udev.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/test/test-udev.c b/src/test/test-udev.c index e972b56b2c..9f3aba70ab 100644 --- a/src/test/test-udev.c +++ b/src/test/test-udev.c @@ -61,14 +61,17 @@ int main(int argc, char *argv[]) { test_setup_logging(LOG_INFO); - if (argc != 3) { - log_error("This program needs two arguments, %d given", argc - 1); + if (!IN_SET(argc, 2, 3)) { + log_error("This program needs one or two arguments, %d given", argc - 1); return EXIT_FAILURE; } if (fake_filesystems() < 0) return EXIT_FAILURE; + if (argc == 2) + return EXIT_SUCCESS; + log_debug("version %s", PACKAGE_VERSION); mac_selinux_init(); |