tests: Let shell resolve the absolute path to binaries in Exec tests

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
This commit is contained in:
Jakub Jelen
2019-10-01 13:49:20 +02:00
parent fe18ef2798
commit 17952c4953
2 changed files with 5 additions and 5 deletions

View File

@@ -548,7 +548,7 @@ static void torture_config_match(void **state)
assert_string_equal(session->opts.host, "otherhost");
torture_write_file(LIBSSH_TESTCONFIG10,
"Match exec /bin/true\n"
"Match exec true\n"
"\tHostName execed-true.com\n"
"");
torture_reset_config(session);
@@ -562,7 +562,7 @@ static void torture_config_match(void **state)
#endif
torture_write_file(LIBSSH_TESTCONFIG10,
"Match !exec /bin/false\n"
"Match !exec false\n"
"\tHostName execed-false.com\n"
"");
torture_reset_config(session);
@@ -576,7 +576,7 @@ static void torture_config_match(void **state)
#endif
torture_write_file(LIBSSH_TESTCONFIG10,
"Match exec \"test -f /bin/true\"\n"
"Match exec \"test 1 -eq 1\"\n"
"\tHostName execed-arguments.com\n"
"");
torture_reset_config(session);

View File

@@ -693,7 +693,7 @@ static void torture_options_config_match(void **state)
torture_reset_config(session);
config = fopen("test_config", "w");
assert_non_null(config);
fputs("Match exec /bin/true\n"
fputs("Match exec true\n"
"\tPort 33\n"
"Match all\n"
"\tPort 34\n",
@@ -715,7 +715,7 @@ static void torture_options_config_match(void **state)
torture_reset_config(session);
config = fopen("test_config", "w");
assert_non_null(config);
fputs("Match exec \"/bin/true 1\"\n"
fputs("Match exec \"true 1\"\n"
"\tPort 33\n"
"Match all\n"
"\tPort 34\n",