Changeset 7151


Ignore:
Timestamp:
Apr 19, 2018, 11:40:32 AM (18 months ago)
Author:
mabarracus
Message:

Fix ltsp option into test suite

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-analytics-server/trunk/fuentes/testing_utils/test_analytics.py

    r7111 r7151  
    2424MAX_RELNUMBER=5         # MAX RELEASE VARIATION
    2525REAL_FLAVOURS=True      # TRUE FLAVOURS (release 15)
    26 DATE_ROUNDS=15           # DIFERENTS MONTHS SENDED
    27 NCLIENTS=1000           # NUMBER DIFFERENT CLIENTS
     26DATE_ROUNDS=13           # DIFERENTS MONTHS SENDED
     27NCLIENTS=2000           # NUMBER DIFFERENT CLIENTS
    2828MAX_THREADS=5           # PARALLEL CLIENTS SENDING DATA (> 5 == no effect)
    2929CACHE_CONNECTIONS=1     # python requests cache hosts
    3030NAPPS=5000                # MAX NUMBER DIFFERENT APPS
    3131CLIENT_MAX_APPS=100      # MAX NUMBER APPS SENDING
    32 CLIENT_UPDATE_FREQ=3    # PERCENT OF CLIENTS THAT UPDATE INTRA ROUND
    33 LOOPS=3                # LOOPS INTRA DATE LOOP
     32CLIENT_UPDATE_FREQ=5    # PERCENT OF CLIENTS THAT UPDATE INTRA ROUND
     33LOOPS=4                # LOOPS INTRA DATE LOOP
    3434SLEEP_THREAD_TIME=0     # SLEEP THREAD AFTER SENDING
    3535STATS_ON=1              # req/s stats
     
    103103
    104104ARCHS=['x86_64','i386']
    105 LTSP_MODES=['THIN','FAT','SEMI']
     105LTSP_MODES=['THIN','SEMI']
    106106SLEEP_FAIL_SENDING=1
    107107
     
    167167                setattr(self,att,pdata[att])
    168168        if USE_LTSP_DATA:
    169             if (random.randint(0,1) == 1):
    170                 self.ltsp=True
    171                 r=random.randint(0,len(LTSP_MODES)-1)
    172                 self.mode=LTSP_MODES[r]
     169            is_ltsp=random.randint(0,1)
     170            if (self.real_flavour == 'client'):
     171                if (is_ltsp == 1):
     172                    self.ltsp=True
     173                    r=random.randint(0,len(LTSP_MODES)-1)
     174                    self.mode=LTSP_MODES[r]
     175                else:
     176                    self.ltsp=False
     177                    self.mode='FAT'
    173178            else:
    174179                self.ltsp=False
Note: See TracChangeset for help on using the changeset viewer.