Last active
October 25, 2015 15:41
-
-
Save apahim/a3a9b8a6d1192aa77724 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Created a custom config file, overwriting sysinfo.collectibles/files: | |
[asegundo@x240 avocado]$ cat ~/.config/avocado/avocado.conf | |
# You can use this file to override configuration values from /etc/avocado/avocado.conf and /etc/avocado/conf.d | |
[sysinfo.collectibles] | |
files = /tmp/files | |
- The new files list was "/proc/swaps" in it: | |
[asegundo@x240 avocado]$ cat /tmp/files | |
/proc/swaps | |
/proc/cmdline | |
/proc/mounts | |
/proc/pci | |
/proc/meminfo | |
/proc/slabinfo | |
/proc/version | |
/proc/cpuinfo | |
/proc/modules | |
/proc/interrupts | |
/proc/partitions | |
/sys/kernel/debug/sched_features | |
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor | |
/sys/devices/system/clocksource/clocksource0/current_clocksource | |
- Standard avocado run: | |
[asegundo@x240 avocado]$ avocado run /bin/true | |
JOB ID : ca94cf5a54e9fd82a24991c6de832edc0655b25f | |
JOB LOG : /home/asegundo/avocado/job-results/job-2015-10-25T13.33-ca94cf5/job.log | |
TESTS : 1 | |
(1/1) /bin/true: PASS (0.01 s) | |
RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | |
TIME : 0.01 s | |
- Proving the new files list is working: | |
[asegundo@x240 avocado]$ cat /home/asegundo/avocado/job-results/job-2015-10-25T13.33-ca94cf5/sysinfo/pre/swaps | |
Filename Type Size Used Priority | |
/dev/sda2 partition 4194300 1767912 -1 | |
- Now removing the 'files' custom configuration: | |
[asegundo@x240 avocado]$ cat ~/.config/avocado/avocado.conf | |
# You can use this file to override configuration values from /etc/avocado/avocado.conf and /etc/avocado/conf.d | |
# [sysinfo.collectibles] | |
# files = /tmp/files | |
- Job replay is expected to create the 'swaps' file, regardless the empty custom config file: | |
[asegundo@x240 avocado]$ avocado run --replay ca94cf5a54 | |
JOB ID : f955ef4577a288a5302e397f7aa979e31d0d9d6a | |
JOB LOG : /home/asegundo/avocado/job-results/job-2015-10-25T13.34-f955ef4/job.log | |
TESTS : 1 | |
(1/1) /bin/true: PASS (0.01 s) | |
RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | |
TIME : 0.01 s | |
- Proving replay created the 'swaps' file: | |
[asegundo@x240 avocado]$ cat /home/asegundo/avocado/job-results/job-2015-10-25T13.34-f955ef4/sysinfo/pre/swaps | |
Filename Type Size Used Priority | |
/dev/sda2 partition 4194300 1767912 -1 | |
- Now running the replay ignoring the recorded job configuration. Default configuration will be loaded instead: | |
[asegundo@x240 avocado]$ avocado run --replay ca94cf5a54 --replay-ignore config | |
JOB ID : c7ab494bcbd1d8603b9d1b7d6017677d90ec788b | |
JOB LOG : /home/asegundo/avocado/job-results/job-2015-10-25T13.35-c7ab494/job.log | |
TESTS : 1 | |
(1/1) /bin/true: PASS (0.01 s) | |
RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | |
TIME : 0.01 s | |
- This time, ignoring the replay configuration and having no custom settings, the 'swap' file will not be created: | |
[asegundo@x240 avocado]$ ls /home/asegundo/avocado/job-results/job-2015-10-25T13.35-c7ab494/sysinfo/pre/ | |
brctl_show cpuinfo df_-mP dmidecode gcc_--version ifconfig_-a ip_link lscpu meminfo mounts partitions uname_-a version | |
cmdline current_clocksource dmesg_-c fdisk_-l hostname interrupts ld_--version lspci_-vvnn modules numactl_--hardware_show scaling_governor uptime |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment