Michal Privoznik
363b401f94
tests: Set PATH in each test
...
Currently we spawn couple of binaries in our test suite.
Moreover, we provide some spoofed versions of system binaries
hoping that those will be executed instead of the system ones.
For instance, for testing SSH socket we have written our own ssh
binary for producing predictable results. We certainly don't want
to execute the system ssh binary.
However, in order to prefer our binaries over system ones, we
need to set PATH environment variable. But this is done only at
the Makefile level. So if anybody runs a test by hand that
expects our spoofed binary, the test ends up executing real
system binaries. This is not good. In fact, it's terribly wrong.
The fix lies in a small trick - putting our build directory at
the beginning of the PATH environment variable in each test.
Hopefully, since every test has this VIRT_TEST_MAIN* wrapper, we
can fix this at a single place.
Moreover, while this removes setting PATH for our tests written
in bash, it's safe as we are not calling anything ours that would
require PATH change there.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2016-03-18 11:38:37 +01:00
..
2016-01-25 04:19:33 +03:00
2014-04-08 20:50:36 +04:00
2014-12-24 18:01:44 +01:00
2014-09-03 09:36:13 -06:00
2015-06-16 13:46:21 +02:00
2015-08-21 15:42:38 -07:00
2015-01-29 15:20:47 +01:00
2014-02-20 15:50:46 +00:00
2015-08-25 07:21:33 -04:00
2014-04-16 10:45:55 +02:00
2016-01-26 17:53:33 +01:00
2016-01-08 21:21:34 -05:00
2016-01-08 21:21:34 -05:00
2015-05-22 10:14:01 -04:00
2015-12-09 12:59:02 +01:00
2015-08-26 11:28:30 +01:00
2013-11-07 18:43:15 +01:00
2015-06-09 13:56:00 -04:00
2015-11-09 15:50:39 +00:00
2015-08-11 16:07:41 +02:00
2015-08-11 16:07:41 +02:00
2015-06-02 12:40:07 -04:00
2015-06-02 12:40:07 -04:00
2015-07-21 07:08:35 -04:00
2015-10-22 09:32:58 +02:00
2015-11-09 15:50:39 +00:00
2015-01-07 11:41:49 -05:00
2015-01-07 11:41:49 -05:00
2014-11-24 10:29:16 -05:00
2016-02-19 09:45:23 -05:00
2016-03-10 22:54:40 +01:00
2015-11-10 10:38:18 +00:00
2015-11-10 10:38:00 +00:00
2016-03-01 14:17:09 +01:00
2013-11-08 09:44:36 +01:00
2016-03-10 22:54:40 +01:00
2016-03-01 14:29:06 +00:00
2014-02-14 16:47:14 +01:00
2014-03-07 14:02:10 +01:00
2015-04-20 16:43:13 -04:00
2016-02-19 09:45:23 -05:00
2016-01-19 13:02:59 -05:00
2016-01-19 13:02:59 -05:00
2015-07-24 11:23:45 -04:00
2015-07-24 11:23:45 -04:00
2015-05-25 20:52:57 -04:00
2015-05-21 18:13:18 +02:00
2014-06-18 15:19:18 +02:00
2014-06-05 13:58:13 +02:00
2015-03-18 09:53:24 +01:00
2013-11-28 11:49:01 +00:00
2016-02-17 12:46:34 +01:00
2015-04-14 19:33:02 +02:00
2015-06-16 13:46:20 +02:00
2014-01-25 12:53:11 +01:00
2014-03-29 21:14:15 +01:00
2014-03-03 14:35:22 +01:00
2014-06-11 14:56:18 +02:00
2016-01-26 17:53:33 +01:00
2014-12-24 18:01:44 +01:00
2016-02-22 11:46:50 -07:00
2016-02-19 09:45:23 -05:00
2016-01-08 18:56:00 -07:00
2016-01-25 08:34:23 +01:00
2015-02-11 14:30:45 +01:00
2016-01-25 04:19:33 +03:00
2016-02-26 09:47:45 +01:00
2016-01-08 21:21:34 -05:00
2014-11-14 17:13:36 +01:00
2015-10-21 15:03:35 +02:00
2015-08-21 15:42:38 -07:00
2016-01-08 21:21:34 -05:00
2015-04-27 10:04:38 +02:00
2015-04-23 17:08:48 -04:00
2016-02-05 15:07:07 -05:00
2016-01-08 21:21:34 -05:00
2016-02-05 10:57:39 +00:00
2014-11-14 17:13:36 +01:00
2015-10-07 10:48:45 -04:00
2014-03-25 14:58:41 +01:00
2014-04-25 11:59:46 +01:00
2016-02-26 09:47:45 +01:00
2016-01-08 21:21:34 -05:00
2016-01-26 17:53:33 +01:00
2015-06-25 09:11:15 +02:00
2015-08-10 13:15:56 +02:00
2016-02-17 11:07:21 -05:00
2016-02-26 09:47:45 +01:00
2016-03-18 11:38:37 +01:00
2014-07-17 17:04:12 +02:00
2016-01-08 21:21:34 -05:00
2015-06-09 13:56:00 -04:00
2015-04-23 17:08:48 -04:00
2015-08-11 16:07:41 +02:00
2015-06-02 12:40:07 -04:00
2016-01-08 21:21:34 -05:00
2016-01-26 17:53:33 +01:00
2015-08-03 08:38:46 -04:00
2015-08-03 08:38:47 -04:00
2016-01-08 16:08:15 +01:00
2016-01-08 21:21:34 -05:00
2015-04-23 17:08:48 -04:00
2015-04-23 17:08:48 -04:00
2015-03-23 09:56:15 +01:00
2015-03-11 16:58:48 +01:00
2016-02-04 12:38:26 +00:00
2015-09-22 13:56:59 +02:00
2016-02-17 11:07:21 -05:00
2015-12-24 14:49:38 +00:00
2015-03-27 16:55:33 +01:00
2015-09-24 09:53:38 -04:00
2015-04-27 10:04:38 +02:00
2015-11-10 10:38:18 +00:00
2016-02-16 11:07:48 -05:00
2016-01-08 18:18:58 +01:00
2015-09-22 17:05:16 +02:00
2015-03-11 11:28:03 +01:00
2015-12-11 12:23:38 +01:00
2016-03-10 22:54:40 +01:00
2016-03-01 09:45:47 +01:00
2014-03-03 12:40:32 -07:00
2015-04-27 16:03:31 +02:00
2015-12-09 15:22:59 +01:00
2015-10-07 17:51:28 +02:00
2016-01-08 21:21:34 -05:00
2015-04-23 17:08:48 -04:00
2016-02-24 15:14:30 -07:00
2015-10-21 15:03:35 +02:00
2015-10-07 17:51:28 +02:00
2016-02-04 12:38:26 +00:00
2014-03-20 17:06:38 +01:00
2014-11-14 17:13:36 +01:00
2015-08-10 13:06:56 -04:00
2015-04-23 17:08:48 -04:00
2015-10-05 14:34:04 -04:00
2016-01-08 21:21:34 -05:00
2016-01-19 13:02:59 -05:00
2016-01-08 21:21:34 -05:00
2015-07-24 11:23:45 -04:00
2015-04-23 17:08:48 -04:00
2015-05-21 18:13:18 +02:00
2014-09-03 15:00:19 -04:00
2016-02-01 13:03:28 -07:00
2015-12-29 09:37:35 +01:00
2016-03-18 11:38:37 +01:00
2016-02-26 09:47:45 +01:00
2015-04-23 17:08:48 -04:00
2014-03-18 12:17:12 +01:00
2016-01-18 13:22:14 +01:00
2015-09-22 13:56:59 +02:00
2015-04-20 16:40:26 -04:00
2015-01-14 08:28:50 -07:00
2015-11-18 13:48:38 -07:00
2014-07-01 16:46:29 +02:00
2016-01-25 17:53:08 +01:00
2014-04-25 11:29:55 +01:00
2013-11-20 09:14:55 -07:00
2015-10-21 15:03:35 +02:00
2016-02-05 16:21:45 +01:00
2015-04-23 17:08:48 -04:00
2015-04-23 17:08:48 -04:00
2015-09-25 15:33:53 -04:00
2016-02-25 11:14:29 +01:00
2016-02-08 09:51:34 +01:00
2014-03-10 16:39:18 +00:00
2016-02-11 18:24:32 +01:00
2016-02-11 11:35:02 +01:00
2015-01-27 12:02:04 +00:00
2014-03-25 14:58:41 +01:00
2015-04-09 09:43:36 +02:00
2016-02-11 18:24:32 +01:00
2016-02-17 12:46:34 +01:00
2016-03-08 10:42:25 +01:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2015-10-21 15:03:35 +02:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2016-03-16 14:24:15 +01:00
2014-11-27 11:17:56 +01:00
2016-03-11 12:58:41 +01:00
2014-11-06 14:28:37 +01:00
2016-02-05 16:43:19 +01:00
2015-04-14 19:33:02 +02:00
2015-04-14 19:33:02 +02:00
2014-03-25 14:58:41 +01:00
2015-11-04 13:09:35 +01:00
2014-09-04 11:56:39 +02:00
2015-08-04 12:28:24 +01:00
2014-09-04 11:56:39 +02:00
2015-12-09 15:22:58 +01:00
2016-02-23 10:36:13 +01:00
2016-03-01 06:50:16 -05:00
2016-02-12 16:13:31 +01:00
2016-02-12 16:13:31 +01:00
2015-11-30 10:45:45 +01:00
2015-09-16 11:23:16 -04:00
2015-06-02 09:20:31 -04:00
2014-03-25 14:58:41 +01:00
2015-02-04 08:38:25 +01:00
2016-02-09 15:44:58 -05:00
2016-02-11 18:24:32 +01:00
2015-08-24 13:00:39 +02:00
2015-11-04 13:09:35 +01:00
2015-10-21 15:03:35 +02:00
2015-10-21 15:03:35 +02:00
2014-03-25 14:58:41 +01:00
2014-03-25 14:58:41 +01:00
2014-06-11 14:56:18 +02:00
2016-02-04 12:38:26 +00:00
2015-04-23 17:08:48 -04:00
2016-02-22 11:46:50 -07:00
2016-02-04 12:38:26 +00:00
2016-01-08 18:56:00 -07:00
2016-01-25 08:34:23 +01:00