Fixing the unittest that had wrong lists and only worked because we zipped the 
lists to compare them

Signed-off-by: Jean-Marc Eurin <[email protected]>

--- autotest/cli/acl_unittest.py        2010-03-22 10:50:09.000000000 -0700
+++ autotest/cli/acl_unittest.py        2010-03-22 10:50:09.000000000 -0700
@@ -302,7 +302,7 @@
 
     def test_acl_add_bad_users_hosts(self):
         self.run_cmd(argv=['atest', 'acl', 'add', 'acl0',
-                           '-u', 'user0,user1', '-m', 'host0'],
+                           '-u', 'user0,user1', '-m', 'host0,host1'],
                      rpcs=[('acl_group_add_users',
                            {'id': 'acl0',
                             'users': ['user0', 'user1']},
@@ -316,7 +316,7 @@
                             None),
                            ('acl_group_add_hosts',
                             {'id': 'acl0',
-                             'hosts': ['host0', 'host1']},
+                             'hosts': ['host1', 'host0']},
                             False,
                             'DoesNotExist: The following Hosts do not exist: '
                             'host1'),
--- autotest/cli/job_unittest.py        2010-03-22 10:50:10.000000000 -0700
+++ autotest/cli/job_unittest.py        2010-03-22 10:50:10.000000000 -0700
@@ -1057,6 +1057,7 @@
 
     def test_execute_create_job_oth(self):
         data = self.data.copy()
+        data['hosts'] = []
         data['one_time_hosts'] = ['host0']
         self.run_cmd(argv=['atest', 'job', 'create', '-t', 'sleeptest',
                            'test_job0', '--one-time-hosts', 'host0'],
@@ -1074,6 +1075,7 @@
 
     def test_execute_create_job_multi_oth(self):
         data = self.data.copy()
+        data['hosts'] = []
         data['one_time_hosts'] = ['host1', 'host0']
         self.run_cmd(argv=['atest', 'job', 'create', '-t', 'sleeptest',
                            'test_job0', '--one-time-hosts', 'host0,host1'],
@@ -1091,6 +1093,7 @@
 
     def test_execute_create_job_oth_exists(self):
         data = self.data.copy()
+        data['hosts'] = []
         data['one_time_hosts'] = ['host0']
         self.run_cmd(argv=['atest', 'job', 'create', '-t', 'sleeptest',
                            'test_job0', '--one-time-hosts', 'host0'],
--- autotest/mirror/trigger_unittest.py 2010-03-22 10:50:10.000000000 -0700
+++ autotest/mirror/trigger_unittest.py 2010-03-22 10:50:10.000000000 -0700
@@ -106,6 +106,8 @@
     def test_upload_kernel_config(self):
         tests_map = {
             'mach1': trigger.map_action.machine_info(
+                    ('test1',), {'2.6.20': 'config1'}),
+            'mach3': trigger.map_action.machine_info(
                     ('test1',), {'2.6.20': 'config1'})
             }
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to