def do_GET_PLATFORM(self):     
        print ''
        aux1, platform, aux2 = gather_from_release()
        ans = console.custom_input(msg='Platform: ', preselect=platform)
        self.data['rep_platform'] = ans

        return 'TEST_PRODUCT_PLATFORM'
Exemple #2
0
    def do_GET_PLATFORM(self):
        print ''
        aux1, platform, aux2 = gather_from_release()
        ans = console.custom_input(msg='Platform: ', preselect=platform)
        self.data['rep_platform'] = ans

        return 'TEST_PRODUCT_PLATFORM'
    def do_PRE_ASK_PRODUCT_PLATFORM(self):
        print ''
        product, platform, full_name = gather_from_release()
        
        if not self.interact:
            self.data['product'] = console.custom_input(msg="Product (or '?' for a list): ", preselect=product).strip()
            if self.data['product'] == '?':
                return "SELECT_PRODUCT_PLATFORM"
            self.data['rep_platform'] = console.custom_input(msg="Platform: ", preselect=platform)
            return "TEST_PRODUCT_PLATFORM"
        
        print 'Found %s.' % full_name
        correct = console.yes_no('Is that the correct product & platform? yes/no')

        if correct:
            self.data['product'] = product
            self.data['rep_platform'] = platform
            return 'TEST_PRODUCT_PLATFORM'

        return 'ASK_PRODUCT_PLATFORM'
Exemple #4
0
    def do_PRE_ASK_PRODUCT_PLATFORM(self):
        print ''
        product, platform, full_name = gather_from_release()

        if not self.interact:
            self.data['product'] = console.custom_input(
                msg="Product (or '?' for a list): ",
                preselect=product).strip()
            if self.data['product'] == '?':
                return "SELECT_PRODUCT_PLATFORM"
            self.data['rep_platform'] = console.custom_input(
                msg="Platform: ", preselect=platform)
            return "TEST_PRODUCT_PLATFORM"

        print 'Found %s.' % full_name
        correct = console.yes_no(
            'Is that the correct product & platform? yes/no')

        if correct:
            self.data['product'] = product
            self.data['rep_platform'] = platform
            return 'TEST_PRODUCT_PLATFORM'

        return 'ASK_PRODUCT_PLATFORM'