Merge pull request #736 from blueyed/fix-integration-tests-runner

tests/run.sh: avoid warnings by setting up fg/bg/colors in xrdb
This commit is contained in:
Daniel Hahler 2016-03-06 15:13:16 +01:00
commit cc5415b389
1 changed files with 25 additions and 1 deletions

View File

@ -117,7 +117,31 @@ wait_until_success() {
# Wait for DISPLAY to be available, and setup xrdb, # Wait for DISPLAY to be available, and setup xrdb,
# for awesome's xresources backend / queries. # for awesome's xresources backend / queries.
wait_until_success "setup xrdb" "echo 'Xft.dpi: 96' | DISPLAY='$D' xrdb 2>&1" wait_until_success "setup xrdb" "printf 'Xft.dpi: 96
*.background: #002b36
*.foreground: #93a1a1
*.color0: #002b36
*.color1: #dc322f
*.color10: #859900
*.color11: #b58900
*.color12: #268bd2
*.color13: #6c71c4
*.color14: #2aa198
*.color15: #fdf6e3
*.color16: #cb4b16
*.color17: #d33682
*.color18: #073642
*.color19: #586e75
*.color2: #859900
*.color20: #839496
*.color21: #eee8d5
*.color3: #b58900
*.color4: #268bd2
*.color5: #6c71c4
*.color6: #2aa198
*.color7: #93a1a1
*.color8: #657b83
*.color9: #dc322f' | DISPLAY='$D' xrdb 2>&1"
# Use a separate D-Bus session; sets $DBUS_SESSION_BUS_PID. # Use a separate D-Bus session; sets $DBUS_SESSION_BUS_PID.
eval $(DISPLAY="$D" dbus-launch --sh-syntax --exit-with-session) eval $(DISPLAY="$D" dbus-launch --sh-syntax --exit-with-session)