From bcc7c65f772ebc8d6c4e29b4fb9480c8548b20b2 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 1 May 2016 19:24:38 +0200 Subject: [PATCH] tests/_client.lua: Allow class to be unspecified Signed-off-by: Uli Schlachter --- tests/_client.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/_client.lua b/tests/_client.lua index 312bf924..cb1b8ad0 100644 --- a/tests/_client.lua +++ b/tests/_client.lua @@ -4,14 +4,14 @@ local spawn = require("awful.spawn") -- It is used to test the `awful.rules` return function(class, title, use_sn) + class = class or 'test_app' title = title or 'Awesome test client' local cmd = {"lua" , "-e", table.concat { "local lgi = require 'lgi';", "local Gtk = lgi.require('Gtk');", "Gtk.init();", - "local class = '", - class or 'test_app',"';", + "local class = '",class,"';", "local window = Gtk.Window {", " default_width = 100,", " default_height = 100,",